Skip to content

Extension v1.4.3 doesn't work with transpilers or "type: module" in package.json #765

Open
@gabrielgortabns

Description

@gabrielgortabns

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

  1. create template
  2. rename ./src folder to ./build
  3. set defaultProjectFolder: 'build' in suitecloud.config.js
  4. 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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtrackedAlready in Backlog

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions