Jayy
Jayy
SIASapphire - Imagine a framework
Created by Jayy on 11/22/2024 in #sapphire-support
JS Example has error with loading routes
I've downloaded the JS example from here: https://github.com/sapphiredev/examples/tree/main/examples/with-javascript The bot runs fine apart from a few issues with loading the routes
Error when loading 'C:\Users\Jacob\Downloads\sapph\src\routes\hello-world.js': TypeError: Cannot read properties of undefined (reading 'GET')
at Object.<anonymous> (C:\Users\Jacob\Downloads\sapph\src\routes\hello-world.js:11:11)
Error when loading 'C:\Users\Jacob\Downloads\sapph\src\routes\hello-world.js': TypeError: Cannot read properties of undefined (reading 'GET')
at Object.<anonymous> (C:\Users\Jacob\Downloads\sapph\src\routes\hello-world.js:11:11)
and
at _RouteLoaderStrategy.preload (C:\Users\Jacob\Downloads\sapph\node_modules\@sapphire\pieces\dist\cjs\lib\strategies\LoaderStrategy.cjs:50:17)
Error when loading 'C:\Users\Jacob\Downloads\sapph\src\commands\General\eval.js': Error: Cannot find module 'C:\Users\Jacob\Downloads\sapph\node_modules\@sapphire\type\prebuild\type-node-v127-win32-x64-unknown-unknown\type.node'
at _RouteLoaderStrategy.preload (C:\Users\Jacob\Downloads\sapph\node_modules\@sapphire\pieces\dist\cjs\lib\strategies\LoaderStrategy.cjs:50:17)
Error when loading 'C:\Users\Jacob\Downloads\sapph\src\commands\General\eval.js': Error: Cannot find module 'C:\Users\Jacob\Downloads\sapph\node_modules\@sapphire\type\prebuild\type-node-v127-win32-x64-unknown-unknown\type.node'
Not sure what's going on here. I'm running node v22.11.0 and npm 10.9.0, I've ran npm install and then npm watch. Many thanks!
16 replies