adobe / aio-lib-runtime

Adobe I/O Javascript SDK implementing a value-add layer for Adobe I/O Runtime
https://www.adobe.io
Apache License 2.0
3 stars 20 forks source link

Custom Webpack config not supported with ES Modules #110

Open MichaelGoberling opened 2 years ago

MichaelGoberling commented 2 years ago

Expected Behaviour

Actual Behaviour

➜  sequence_test git:(main) ✗ aio app run --local
ℹ checking if java is installed...
ℹ checking if docker is installed...
ℹ checking if docker is running...
ℹ starting local OpenWhisk stack...
ℹ writing credentials to tmp wskdebug config '/Users/mgoberling/repos/adobe/my-utils/utils/sequence_test/dist/application/.env.local'
ℹ building actions..
 ›   Error: require() of ES Module /Users/mgoberling/repos/adobe/my-utils/utils/sequence_test/actions/first/webpack-config.js from 
 ›   /usr/local/lib/node_modules/@adobe/aio-cli/node_modules/@adobe/aio-lib-runtime/src/build-actions.js not supported.
 ›   Instead change the require of webpack-config.js in /usr/local/lib/node_modules/@adobe/aio-cli/node_modules/@adobe/aio-lib-runtime/src/build-actions.js to a dynamic 
 ›   import() which is available in all CommonJS modules.

Steps to Reproduce

Additional notes

Due to import when building actions here

aiojbot commented 1 year ago

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-1896

aiojbot commented 1 year ago

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-1961