You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm having difficulties using the plugin on my node application.
First I tried to treat it like any other npm package, but it seems there missing typing. An import statement just would not work (Can not find module).
While it seems that everything runs smoothly from within an HTML script tag, I just can't import fabric.adapted.js file using require. Many dependencies seem to be broken.
`./node_modules/http-proxy-agent/dist/agent.js:45:30-44 - Error: Module not found: Error: Can't resolve 'net' in 'C:\projects\WpfOpenSlide\scripts\web\studio\node_modules\http-proxy-agent\dist'
./node_modules/http-proxy-agent/dist/agent.js:47:30-44 - Error: Module not found: Error: Can't resolve 'tls' in 'C:\projects\WpfOpenSlide\scripts\web\studio\node_modules\http-proxy-agent\dist'
./node_modules/https-proxy-agent/dist/agent.js:45:30-44 - Error: Module not found: Error: Can't resolve 'net' in 'C:\projects\WpfOpenSlide\scripts\web\studio\node_modules\https-proxy-agent\dist'
./node_modules/https-proxy-agent/dist/agent.js:47:30-44 - Error: Module not found: Error: Can't resolve 'tls' in 'C:\projects\WpfOpenSlide\scripts\web\studio\node_modules\https-proxy-agent\dist'
./node_modules/jsdom/lib/api.js:5:13-28 - Error: Module not found: Error: Can't resolve 'path' in 'C:\projects\WpfOpenSlide\scripts\web\studio\node_modules\jsdom\lib'
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 }
./node_modules/jsdom/lib/api.js:7:11-33 - Error: Module not found: Error: Can't resolve 'fs' in 'C:\projects\WpfOpenSlide\scripts\web\studio\node_modules\jsdom\lib'
./node_modules/jsdom/lib/jsdom/browser/resources/resource-loader.js:3:11-24 - Error: Module not found: Error: Can't resolve 'fs' in 'C:\projects\WpfOpenSlide\scripts\web\studio\node_modules\jsdom\lib\jsdom\browser\resources'`
This goes on...
Would love to have your help on this. Thank you!
The text was updated successfully, but these errors were encountered:
Hello, I'm having difficulties using the plugin on my node application.
First I tried to treat it like any other npm package, but it seems there missing typing. An import statement just would not work (Can not find module).
While it seems that everything runs smoothly from within an HTML script tag, I just can't import fabric.adapted.js file using require. Many dependencies seem to be broken.
`./node_modules/http-proxy-agent/dist/agent.js:45:30-44 - Error: Module not found: Error: Can't resolve 'net' in 'C:\projects\WpfOpenSlide\scripts\web\studio\node_modules\http-proxy-agent\dist'
./node_modules/http-proxy-agent/dist/agent.js:47:30-44 - Error: Module not found: Error: Can't resolve 'tls' in 'C:\projects\WpfOpenSlide\scripts\web\studio\node_modules\http-proxy-agent\dist'
./node_modules/https-proxy-agent/dist/agent.js:45:30-44 - Error: Module not found: Error: Can't resolve 'net' in 'C:\projects\WpfOpenSlide\scripts\web\studio\node_modules\https-proxy-agent\dist'
./node_modules/https-proxy-agent/dist/agent.js:47:30-44 - Error: Module not found: Error: Can't resolve 'tls' in 'C:\projects\WpfOpenSlide\scripts\web\studio\node_modules\https-proxy-agent\dist'
./node_modules/jsdom/lib/api.js:5:13-28 - Error: Module not found: Error: Can't resolve 'path' in 'C:\projects\WpfOpenSlide\scripts\web\studio\node_modules\jsdom\lib'
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 }
./node_modules/jsdom/lib/api.js:7:11-33 - Error: Module not found: Error: Can't resolve 'fs' in 'C:\projects\WpfOpenSlide\scripts\web\studio\node_modules\jsdom\lib'
./node_modules/jsdom/lib/jsdom/browser/resources/resource-loader.js:3:11-24 - Error: Module not found: Error: Can't resolve 'fs' in 'C:\projects\WpfOpenSlide\scripts\web\studio\node_modules\jsdom\lib\jsdom\browser\resources'`
This goes on...
Would love to have your help on this. Thank you!
The text was updated successfully, but these errors were encountered: