Skip to content

4.1.0 breaks build with additionalAliases: ['process'] #62

@ShGKme

Description

@ShGKme

Error

After upgrading from 4.0.0 to 4.1.0 when additionalAliases: ['process'] is enabled, there are many errors like:

Image

ERROR in ./node_modules/axios/lib/utils.js 678:42-49
Module not found: Error: Can't resolve '/home/shgk/nextcloud/server/apps-extra/spreed/node_modules/node-stdlib-browser/cjs/proxy/process' in '/home/shgk/nextcloud/server/apps-extra/spreed/node_modules/axios/lib'
Did you mean 'process.js'?
BREAKING CHANGE: The request '/home/shgk/nextcloud/server/apps-extra/spreed/node_modules/node-stdlib-browser/cjs/proxy/process' 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.
 @ ./node_modules/axios/lib/axios.js 3:0-31 33:2-14 36:2-14 80:43-59
 @ ./node_modules/axios/index.js 1:0-35 23:4-9 25:0-43:1
 @ ./node_modules/@nextcloud/axios/dist/index.mjs 1:0-26 2:0-47 59:15-27 66:15-32 67:12-26 75:0-79:2 75:0-79:2
 @ ./src/utils/webrtc/index.js 1:0-37 52:8-22
 @ ./src/mainRecording.js 10:0-14:33 39:44-76 40:41-70 41:25-38

Reproduction

  1. Clone https://github.com/nextcloud/spreed (use tag v21.0.1 for a specific version)
  2. npm i -D node-polyfill-webpack-plugin@4.1.0
  3. npm run dev

I'll try to make a smaller reproduction later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions