Is this familiar to anyone: ```Compiled with prob...
# squarelibraries
p
Is this familiar to anyone:
Copy code
Compiled 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 advance
c
Not sure if it helps, but I have this in one of my
js
multiplatform modules that uses sql.
p
Thanks! I LL take a look. I should have started like that, looking for a working project.
Update: It Worked !!! Thank you so much. I had to add the fs.js and also the wasm.js. Also adjust the sql-wasm.wasm directories to my project path. But after that, working like a charm.
235 Views