Closed ndinhphi closed 5 months ago
Hey @ndinhphi,
I apologize for the late reply on this 🙏
How did you start the app locally?
You need to run yarn install
at the base of the repo to make sure you have TypeScript support, then proceed with yarn start
.
I've bumped the Node version as well in this PR: https://github.com/gnolang/gno-by-example/pull/134
Please reopen the issue if you still have problems 🙏
When I try to start the app on my local. I got the following error message:
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for D:\Project\gno\gno-by-example\scripts\generate.ts at new NodeError (node:internal/errors:406:5) at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:99:9) at defaultGetFormat (node:internal/modules/esm/get_format:142:36) at defaultLoad (node:internal/modules/esm/load:120:20) at nextLoad (node:internal/modules/esm/hooks:833:28) at load (C:\Users\Phi\AppData\Roaming\nvm\v20.9.0\node_modules\ts-node\dist\child\child-loader.js:17:40) at nextLoad (node:internal/modules/esm/hooks:833:28) at Hooks.load (node:internal/modules/esm/hooks:416:26) at MessagePort.handleMessage (node:internal/modules/esm/worker:168:24) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:807:20) { code: 'ERR_UNKNOWN_FILE_EXTENSION' } error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Specifications
Node: 20.9.0 Npm: 10.2.1 OS: Windows 10