ecosystem-tests icon indicating copy to clipboard operation
ecosystem-tests copied to clipboard

Create reproduction for webpack bundling runtime error

Open f0rr0 opened this issue 5 years ago • 0 comments

Reproduction for https://github.com/prisma/prisma/issues/5250 and https://github.com/prisma/prisma/issues/2303

2 errors

Update this dependency to remove implicit peer dependency or add note to readme.

WARNING in ./node_modules/@prisma/client/runtime/index.js 10099:16-43
Module not found: Error: Can't resolve 'encoding' in '/Users/sid/Dev/prisma-source/bundlers/webpack/node_modules/@prisma/client/runtime'
 @ ./node_modules/.prisma/client/index.js 18:4-37
 @ ./node_modules/@prisma/client/index.js 1:15-40
 @ ./src/index.js 1:0-45 5:19-31

Add to readme to set node to false in webpack config. https://webpack.js.org/configuration/node/

ERROR in ./node_modules/@prisma/client/runtime/index.js 59534:24-64
Module not found: Error: Can't resolve 'string_decoder/' in '/Users/sid/Dev/prisma-source/bundlers/webpack/node_modules/@prisma/client/runtime'
 @ ./node_modules/.prisma/client/index.js 18:4-37
 @ ./node_modules/@prisma/client/index.js 1:15-40
 @ ./src/index.js 1:0-45 5:19-31

f0rr0 avatar Jan 27 '21 15:01 f0rr0