Describe the bug
When trying to build the Decidim assets, there may be currently the following kind of issues due to some updates at Babel:
ERROR in ../../decidim-accountability/app/packs/entrypoints/decidim_accountability.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find package '@babel/plugin-proposal-private-methods' imported from /home/runner/work/decidim/decidim/spec/decidim_dummy_app/babel-virtual-resolve-base.js
at new NodeError (/home/runner/work/decidim/decidim/spec/decidim_dummy_app/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:203:5)
at packageResolve (/home/runner/work/decidim/decidim/spec/decidim_dummy_app/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:873:9)
at moduleResolve (/home/runner/work/decidim/decidim/spec/decidim_dummy_app/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:902:20)
at defaultResolve (/home/runner/work/decidim/decidim/spec/decidim_dummy_app/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:985:15)
at resolve (/home/runner/work/decidim/decidim/spec/decidim_dummy_app/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:999:12)
at resolve (/home/runner/work/decidim/decidim/spec/decidim_dummy_app/node_modules/@babel/core/lib/config/files/import-meta-resolve.js:13:10)
at tryImportMetaResolve (/home/runner/work/decidim/decidim/spec/decidim_dummy_app/node_modules/@babel/core/lib/config/files/plugins.js:123:45)
at resolveStandardizedNameForImport (/home/runner/work/decidim/decidim/spec/decidim_dummy_app/node_modules/@babel/core/lib/config/files/plugins.js:145:19)
at resolveStandardizedName (/home/runner/work/decidim/decidim/spec/decidim_dummy_app/node_modules/@babel/core/lib/config/files/plugins.js:154:12)
at loadPlugin (/home/runner/work/decidim/decidim/spec/decidim_dummy_app/node_modules/@babel/core/lib/config/files/plugins.js:47:20)
You will receive a separate error of this kind from all of the entry points.
To Reproduce
- Install latest released Decidim version
- Run
bundle exec rake assets:precompile or ./bin/webpack
- See the errors
Expected behavior
The expected behavior is that assets compilation works correctly.
This issue was already fixed at #10916 but it will take a while before we can release the next version containing this fix.
For the time being implementors and module developers can copy the Babel configuration file from the Decidim repository:
https://github.com/decidim/decidim/blob/develop/babel.config.json
Replace your Decidim applications babel.config.json at the root with this file if you are experiencing the problem.
Screenshots
No response
Stacktrace
No response
Extra data
- Device:
- Device OS:
- Browser:
- Decidim Version:
- Decidim installation:
Additional context
No response
Describe the bug
When trying to build the Decidim assets, there may be currently the following kind of issues due to some updates at Babel:
You will receive a separate error of this kind from all of the entry points.
To Reproduce
bundle exec rake assets:precompileor./bin/webpackExpected behavior
The expected behavior is that assets compilation works correctly.
This issue was already fixed at #10916 but it will take a while before we can release the next version containing this fix.
For the time being implementors and module developers can copy the Babel configuration file from the Decidim repository:
https://github.com/decidim/decidim/blob/develop/babel.config.json
Replace your Decidim applications
babel.config.jsonat the root with this file if you are experiencing the problem.Screenshots
No response
Stacktrace
No response
Extra data
Additional context
No response