LordOfFailling Posted May 11, 2021 Posted May 11, 2021 (edited) Hey guys, I'm new to RageMP, but not new to NodeJS. I build a construct with Typescript, compiled to JS for sure. Everytime i try to use a node module i get the Error above (Stack Trace below) . I checked 5 times, everything is installed. I even installed the packages globally. May you can help me. In Vanilla NodeJS my code would work. I tried. At First my TypeScript Code (proximity.ts). It will autocompiled to JS by PHPStorm with 'tsc' and a FileWatcher: Spoiler May you wonder what it looks like if it is compiled: Spoiler Here is my index.js Just requiring the compiled file. Spoiler Next, my Folder Structure. As you can see i'm working in Subdirectorys. The Code above is required in the Index.json of my roleplay package. It is loaded. Spoiler and last but not least: my Package.json. Spoiler I hope you can help me to solve this issue. I really don't know why RageMP is not loading my node modules. My there is kind of a Inside Tip or something like that. Thanks! Oh i forgot. The Server Error and Stack Trace i get: Spoiler Edited May 11, 2021 by LordOfFailling
LordOfFailling Posted May 11, 2021 Author Posted May 11, 2021 Solved. I'm just stupid af and forget to Share the node_modules folder with the Docker Container. My Fault. See ya Guys.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now