The project is currently experiencing compatibility issues with the latest version of Node.js. When attempting to run the project using Node.js 20.x, the following error occurs:
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/fernandomema/gitProjects/zumito-bot/src/Bot.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:160:9)
at defaultGetFormat (node:internal/modules/esm/get_format:203:36)
at defaultLoad (node:internal/modules/esm/load:141:22)
at async nextLoad (node:internal/modules/esm/hooks:865:22)
at async nextLoad (node:internal/modules/esm/hooks:865:22)
at async Hooks.load (node:internal/modules/esm/hooks:448:20)
at async MessagePort.handleMessage (node:internal/modules/esm/worker:196:18) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
The project should run successfully on the latest version of Node.js without encountering any compatibility issues.
Actual Behavior
The project fails to run on Node.js 20.x, and the following error is displayed:
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/fernandomema/gitProjects/zumito-bot/src/Bot.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:160:9)
at defaultGetFormat (node:internal/modules/esm/get_format:203:36)
at defaultLoad (node:internal/modules/esm/load:141:22)
at async nextLoad (node:internal/modules/esm/hooks:865:22)
at async nextLoad (node:internal/modules/esm/hooks:865:22)
at async Hooks.load (node:internal/modules/esm/hooks:448:20)
at async MessagePort.handleMessage (node:internal/modules/esm/worker:196:18) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
Environment
Node.js version: 20.x
Operating System: Windows, linux
The project is currently experiencing compatibility issues with the latest version of Node.js. When attempting to run the project using Node.js 20.x, the following error occurs:
Steps to Reproduce
Clone the repository: git clone https://github.com/ZumitoTeam/zumito-framework.git Install dependencies: npm install Attempt to run the project with Node.js 20.x: npm run start
Expected Behavior
The project should run successfully on the latest version of Node.js without encountering any compatibility issues.
Actual Behavior
The project fails to run on Node.js 20.x, and the following error is displayed:
Environment
Node.js version: 20.x Operating System: Windows, linux
Possible Solution
Change start script from
to