Skip to content
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

Cannot read property 'context' of undefined #61

Closed
brunowego opened this issue Feb 26, 2018 · 2 comments
Closed

Cannot read property 'context' of undefined #61

brunowego opened this issue Feb 26, 2018 · 2 comments

Comments

@brunowego
Copy link

I need a small help here, take a look below to the error I am getting when execute:

ERROR in ./src/views/index.njk
Module build failed: TypeError: Cannot read property 'context' of undefined
    at Object.module.exports (/secret/example/node_modules/nunjucks-loader/index.js:76:57)
 @ ./src/entry.js 1:0-28

Take a look at this example here: https://github.com/brunowego/nunjucks-webpack-example

@S0yKaf
Copy link
Contributor

S0yKaf commented Feb 28, 2018

Same thing here, this is most likely due to a compatibility issue with webpack 4 that came out a couple days ago.

EDIT :

well it's not probably, it is an issue with webpack 4, it's fine on 3.

@at0g let us know if this is something you could realistically fix, I know you mentioned you're no longer interested in maintaining this package so obviously this isn't something fun to do. But I'm sure everyone who still rely on this package would greatly appreciate it!

@bonesoul
Copy link

bonesoul commented Mar 2, 2018

same here with webpack 4.x.

@at0g at0g closed this as completed Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants