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

Doesn't work with extract-text-webpack-plugin #53

Open
morrislaptop opened this issue May 13, 2017 · 0 comments
Open

Doesn't work with extract-text-webpack-plugin #53

morrislaptop opened this issue May 13, 2017 · 0 comments

Comments

@morrislaptop
Copy link

I would like to be able to extract the rendered templates to static HTML files which can be passed to a backend developer to be integrated with the CMS.

Is this possible?

ERROR in ./njk/hello.njk
Module build failed: ReferenceError: window is not defined
    at new_cls.init (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/nunjucks-loader/index.js!/Users/craigmorris/Dev/webpack-nunjucks-t
est/njk/hello.njk:645:23)
    at new new_cls (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/nunjucks-loader/index.js!/Users/craigmorris/Dev/webpack-nunjucks-te
st/njk/hello.njk:1528:29)
    at Object.<anonymous> (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/nunjucks-loader/index.js!/Users/craigmorris/Dev/webpack-nunj
ucks-test/njk/hello.njk:3114:30)
    at __webpack_require__ (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/nunjucks-loader/index.js!/Users/craigmorris/Dev/webpack-nun
jucks-test/njk/hello.njk:21:30)
    at module.exports.module.exports.oldRoot (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/nunjucks-loader/index.js!/Users/craigmorr
is/Dev/webpack-nunjucks-test/njk/hello.njk:67:18)
    at Object.<anonymous> (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/nunjucks-loader/index.js!/Users/craigmorris/Dev/webpack-nunj
ucks-test/njk/hello.njk:70:10)
    at Module._compile (module.js:571:32)
    at Object.exec (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/webpack/lib/NormalModule.js:126:12)
    at Object.<anonymous> (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/extract-text-webpack-plugin/loader.js:112:21)
    at Compiler.<anonymous> (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/webpack/lib/Compiler.js:296:10)
    at /Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/webpack/lib/Compiler.js:499:13
    at next (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/tapable/lib/Tapable.js:138:11)
    at Compiler.<anonymous> (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/extract-text-webpack-plugin/loader.js:93:4)
    at next (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/tapable/lib/Tapable.js:140:14)
    at Compiler.<anonymous> (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/webpack/lib/CachePlugin.js:62:5)
    at Compiler.applyPluginsAsyncSeries (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/tapable/lib/Tapable.js:142:13)
    at /Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/webpack/lib/Compiler.js:496:10
    at Compilation.applyPluginsAsyncSeries (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/tapable/lib/Tapable.js:131:46)
    at self.applyPluginsAsync.err (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/webpack/lib/Compilation.js:649:19)
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

1 participant