Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building npm run build on self developed modules generates errors #3

Open
GitWonder opened this issue Mar 4, 2024 · 0 comments
Open

Comments

@GitWonder
Copy link

GitWonder commented Mar 4, 2024

Running the default install gives security errors

Error: error:0308010C:digital envelope routines::unsupported 
...

https://discord.com/channels/762003889742413824/1098538252354461698/1212134182927605770

Research indicates that this error is due to a tightening of Node to prevent a prior security hole being utilised. The fix is to run

npm audit fix

Rerunning then generates

npm run build

> /users/useraccount/noodl/modules/rsuite@1.0.0 build
> webpack --mode=production

Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
 - options[0] has an unknown property 'transformPath'. These properties are valid:
   object { patterns, options? }
ValidationError: Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
    at validate (/Users/useraccount/Noodl/Modules/rsuite/module/node_modules/copy-webpack-plugin/node_modules/schema-utils/dist/validate.js:158:11)
    at new CopyPlugin (/Users/useraccount/Noodl/Modules/rsuite/module/node_modules/copy-webpack-plugin/dist/index.js:171:5)
    at Object.<anonymous> (/Users/useraccount/Noodl/Modules/rsuite/module/webpack.config.js:33:9)
    at Module._compile (/Users/useraccount/Noodl/Modules/rsuite/module/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
    at Module.load (node:internal/modules/cjs/loader:1212:32)
    at Module._load (node:internal/modules/cjs/loader:1028:12)
    at Module.require (node:internal/modules/cjs/loader:1237:19)
    at require (/Users/useraccount/Noodl/Modules/rsuite/module/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant