Webpack 5 breaking changes

2,610 views
Skip to first unread message

Mahmood Al-Khalil

unread,
Feb 23, 2022, 1:36:07 AM2/23/22
to SIP.js
installing SIP.js with NPM in a react project with react-scripts version 5 which now uses webpack 5 causes compile issue.


Compiled with problems:X

ERROR in ./node_modules/sip.js/lib/index.js 2:0-44

Module not found: Error: Can't resolve './version' in '/home/frisky5/WebstormProjects/atcom-cc-ui/node_modules/sip.js/lib' Did you mean 'version.js'? BREAKING CHANGE: The request './version' failed to resolve only because it was resolved as fully specified (probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"'). The extension in the request is mandatory for it to be fully specified. Add the extension to the request.


ERROR in ./node_modules/sip.js/lib/index.js 7:0-22

Module not found: Error: Can't resolve './api' in '/home/frisky5/WebstormProjects/atcom-cc-ui/node_modules/sip.js/lib' Did you mean 'index.js'? BREAKING CHANGE: The request './api' failed to resolve only because it was resolved as fully specified (probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"'). The extension in the request is mandatory for it to be fully specified. Add the extension to the request.


ERROR in ./node_modules/sip.js/lib/index.js 9:0-26

Module not found: Error: Can't resolve './grammar' in '/home/frisky5/WebstormProjects/atcom-cc-ui/node_modules/sip.js/lib' Did you mean 'index.js'? BREAKING CHANGE: The request './grammar' failed to resolve only because it was resolved as fully specified (probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"'). The extension in the request is mandatory for it to be fully specified. Add the extension to the request.


ERROR in ./node_modules/sip.js/lib/index.js 11:0-31

Module not found: Error: Can't resolve './core' in '/home/frisky5/WebstormProjects/atcom-cc-ui/node_modules/sip.js/lib' Did you mean 'index.js'? BREAKING CHANGE: The request './core' failed to resolve only because it was resolved as fully specified (probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"'). The extension in the request is mandatory for it to be fully specified. Add the extension to the request.


ERROR in ./node_modules/sip.js/lib/index.js 14:0-38

Module not found: Error: Can't resolve './platform/web' in '/home/frisky5/WebstormProjects/atcom-cc-ui/node_modules/sip.js/lib' Did you mean 'index.js'? BREAKING CHANGE: The request './platform/web' failed to resolve only because it was resolved as fully specified (probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"'). The extension in the request is mandatory for it to be fully specified. Add the extension to the request.
Reply all
Reply to author
Forward
0 new messages