wokwi / rp2040js

A Raspberry Pi Pico Emulator in JavaScript
MIT License
410 stars 46 forks source link

Build README.md buidl/run steps do not work with Node 20:10 #136

Closed NewWheelTech closed 1 year ago

NewWheelTech commented 1 year ago

The build steps as documented in the readme.md do not work with Node20:10, the build step instructions do work fine with Node 18 LTS.

You get this error if you are trying to run the project in Node 20:10.

npm run start:micropython

rp2040js@0.19.3 start:micropython
ts-node --esm demo/micropython-run.ts

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" f '
urish commented 1 year ago

Any idea what does work for Node 20?

NewWheelTech commented 1 year ago

I only have basic understand of Node, but I am guessing it is related to this issue:

https://github.com/TypeStrong/ts-node/issues/2086