rapidjs / rapid.js

An ORM-like Interface and a Router For Your API Requests
https://rapidjs.drewjbartlett.com
711 stars 45 forks source link

Cannot find module './core/rapid' #20

Closed webdevian closed 6 years ago

webdevian commented 6 years ago

Error thrown on linux when booting a file that extends RapidJS.

Error: Cannot find module './core/rapid'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/var/lib/jenkins/workspace/vernight_highstreet_develop-Z4EJGYUMCGUJXLSZ5RREIJWO3ZYMIKFLYOSGEMPIHGYF6PMVVKIQ/node_modules/rapid.js/dist/rapid.js:3:14)

My dist folder looks like this: image

Looks like a problem with case insensitivity

drewjbartlett commented 6 years ago

The latest version renamed all the files and folders to lowercase. Maybe try uninstalling and reinstalling the package. Let me know if that helps!

drewjbartlett commented 6 years ago

@webdevian actually I noticed that the dist path hadn't been updated for the case. I just published a patch that fixes that :)