Skip to content

TypeError: isWindows is not a function #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
qwave opened this issue Oct 26, 2017 · 1 comment
Open

TypeError: isWindows is not a function #1

qwave opened this issue Oct 26, 2017 · 1 comment
Labels

Comments

@qwave
Copy link

qwave commented Oct 26, 2017

I'm using Webpack with Handlebars-loader, where helpers included using option 'helperDirs'.
My test code is:

{{#each (glob "*") as |file|}}
  test
{{/each}}

Compile is without any errors (all required packages are installed).

The full error when opening page is:

Html Webpack Plugin:
  TypeError: isWindows is not a function
  
  - index.hbs:12995 fallback
    C:/xampp/htdocs/project/src/index.hbs:12995:7
  
  - index.hbs:12984 getPrefix
    C:/xampp/htdocs/project/src/index.hbs:12984:20
  
  - index.hbs:13034 Object.get [as exports]
    C:/xampp/htdocs/project/src/index.hbs:13034:32
  
  - index.hbs:27 __webpack_require__
    C:/xampp/htdocs/project/src/index.hbs:27:25
  
  - index.hbs:12912 Object.
    C:/xampp/htdocs/project/src/index.hbs:12912:14
  
  - index.hbs:12934 Object.
    C:/xampp/htdocs/project/src/index.hbs:12934:30
  
  - index.hbs:21 __webpack_require__
    C:/xampp/htdocs/project/src/index.hbs:21:30
  
  - index.hbs:12815 Object.
    C:/xampp/htdocs/project/src/index.hbs:12815:10
  
  - index.hbs:21 __webpack_require__
    C:/xampp/htdocs/project/src/index.hbs:21:30
  
  - index.hbs:8134 Object.
    C:/xampp/htdocs/project/src/index.hbs:8134:15

After removing helper code - all works perfectly

@jonschlinkert
Copy link
Member

jonschlinkert commented Oct 26, 2017

The deps in this lib probably just need to be updated. Want to do a pr?

thanks for the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants