When I click the "Test Flow" button, an error will appear
Unexpected error while handling message from webview:
Could not find Custom Add in {absolute path to project}/add.flyde.ts.
The following errors were thrown, and might be the reason the node is not properly resolved.
Errors: Error loading module "{absolute path to project}/add.flyde.ts": Unexpected token 'export'
Possible Cause
After some fiddling around, I found out that changing the module to NodeNext and moduleResolution to NodeNext seems to make it work
Steps to Reproduce
Init a regular npm project
Install @flyde/core using package manager
Create a Flyde flow
Add a custom code node (the add in the tutorial will do)
Import the custom code node
Click "Test Flow" (it should work)
Create a tsconfig.json
Change module to ESNext and moduleResolution to ESNext
Problem
When I click the "Test Flow" button, an error will appear
Possible Cause
After some fiddling around, I found out that changing the
module
toNodeNext
andmoduleResolution
toNodeNext
seems to make it workSteps to Reproduce
@flyde/core
using package managertsconfig.json
module
toESNext
andmoduleResolution
toESNext
Request
monorepo doesn't work either