Pablichjenkov
04/29/2023, 10:23 PMCompiled with problems:
ERROR in ../../node_modules/sql.js/dist/sql-wasm.js 93:11-34
Module not found: Error: Can't resolve 'path' in '<project_path>/build/js/node_modules/sql.js/dist'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
- install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "path": false }
ERROR in ../../node_modules/sql.js/dist/sql-wasm.js 93:81-94
Module not found: Error: Can't resolve 'fs' in '<project_path>/build/js/node_modules/sql.js/dist'
Did some research online but all I got was a thread in the sqdelight github project, that didn’t help much.
Thanks in advanceChrimaeon
04/30/2023, 7:59 AMjs
multiplatform modules that uses sql.Pablichjenkov
05/01/2023, 1:01 PMPablichjenkov
05/02/2023, 4:18 AM