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

Module.createRequire is not a function #13

Open
tgr opened this issue Aug 12, 2022 · 1 comment
Open

Module.createRequire is not a function #13

tgr opened this issue Aug 12, 2022 · 1 comment

Comments

@tgr
Copy link
Contributor

tgr commented Aug 12, 2022

Trying to set up zonestamp locally (via git clone; npm install; npm start using node 10.19.0, npm 6.14.4) resulted in

Html Webpack Plugin:
  Error: Child compilation failed:
  Module.createRequire is not a function
  
  - child-compiler.js:169 childCompiler.runAsChild
    [zonestamp]/[html-webpack-plugin]/lib/child-compiler.js:169:18
  
  - Compiler.js:551 finalCallback
    [zonestamp]/[webpack]/lib/Compiler.js:551:5
  
  - Compiler.js:577 compile
    [zonestamp]/[webpack]/lib/Compiler.js:577:11
  
  - Compiler.js:1196 hooks.afterCompile.callAsync.err
    [zonestamp]/[webpack]/lib/Compiler.js:1196:17
  
  
  - Hook.js:18 Hook.CALL_ASYNC_DELEGATE [as _callAsync]
    [zonestamp]/[tapable]/lib/Hook.js:18:14
  
  - Compiler.js:1192 compilation.seal.err
    [zonestamp]/[webpack]/lib/Compiler.js:1192:33
  
  - Compilation.js:2787 finalCallback
    [zonestamp]/[webpack]/lib/Compilation.js:2787:11
  
  - Compilation.js:3092 hooks.afterSeal.callAsync.err
    [zonestamp]/[webpack]/lib/Compilation.js:3092:11
@tgr
Copy link
Contributor Author

tgr commented Aug 12, 2022

I guess package.json is missing a node 14+ dependency?

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