Skip to content

TypeError: isWindows is not a function #1

@qwave

Description

@qwave

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions