You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Select the SuiteCloud tool where you encountered the issue
SuiteCloud Extension for VSCode
Version of the SuiteCloud Tool
1.4.3
Operating system
Windows 11
Node Version / VSCode Version
Node: v18.15.0, VSCode: v1.83.1
JAVA Version
java 17.0.7+8-LTS-224
Bug description
We use ESM template, that has "type": "module" in package.json, ./src folder holds ESM version of code, that is transpiled with babel to ./build folder.
In suitecloud.config.js I have set defaultProjectFolder: 'build', it worked fine until 1.4.2 version of extension, but after 1.4.3, there is issue and it's impossible to execute commands. It throws just pointless error "Something went wrong".
Steps To Reproduce
create template
rename ./src folder to ./build
set defaultProjectFolder: 'build' in suitecloud.config.js
create new ./src with same structure as ./build but containing ESM files
Actual Output
No response
Expected Output
No response
Anything else?
Until 1.4.2 version, everything worked fine.
The text was updated successfully, but these errors were encountered:
Hello @GabrielGorta, unfortunately at the moment it's not possible to have a suitecloud.config.js file using ESM. You can see more details by using the command line instead of the extension. We will work on providing the same information within VSCode.
Meanwhile, is setting the package.json type to commonjs an option for you?
(same as default, except it points to build folder)
But as I wrote, in package.json we have set type: module. I tried to change the file name to suitecould.config.cjs but it also doesn't work. Sadly, settings type: commonjs is not option for us, as source files are in ESM format and transpiler expect type to be set to module.
Select the SuiteCloud tool where you encountered the issue
SuiteCloud Extension for VSCode
Version of the SuiteCloud Tool
1.4.3
Operating system
Windows 11
Node Version / VSCode Version
Node: v18.15.0, VSCode: v1.83.1
JAVA Version
java 17.0.7+8-LTS-224
Bug description
We use ESM template, that has
"type": "module"
inpackage.json
,./src
folder holds ESM version of code, that is transpiled with babel to./build
folder.In
suitecloud.config.js
I have setdefaultProjectFolder: 'build'
, it worked fine until 1.4.2 version of extension, but after 1.4.3, there is issue and it's impossible to execute commands. It throws just pointless error "Something went wrong".Steps To Reproduce
./src
folder to./build
defaultProjectFolder: 'build'
insuitecloud.config.js
./src
with same structure as./build
but containing ESM filesActual Output
No response
Expected Output
No response
Anything else?
Until 1.4.2 version, everything worked fine.
The text was updated successfully, but these errors were encountered: