Cannot use with webpack due to pngjs-image
Inventsable opened this issue · 0 comments
Inventsable commented
On running a server gives multiple errors, such as:
warning in ./node_modules/pngjs-image/index.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
Then an error that prevents HTML render:
Error: Cannot find module '...\chunks\bKGD'
at webpackEmptyContext (eval at ./node_modules/pngjs-image/lib/png sync recursive (VM753 2.js:1885), <anonymous>:2:10)
at Function.eval (VM1032 chunk.js:462)
at Array.forEach (<anonymous>)
at Function.Chunk.initDefaultChunkTypes (VM1032 chunk.js:461)
at eval (VM1032 chunk.js:484)
at Object../node_modules/pngjs-image/lib/png/chunk.js (VM753 2.js:1896)
at __webpack_require__ (VM132 app.js:854)
at fn (VM132 app.js:151)
at eval (VM1031 decoder.js:4)
at Object../node_modules/pngjs-image/lib/png/decoder.js (VM753 2.js:1907)