assets.json module not found #1506
Unanswered
rarescosmin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I have an issue regarding the assets.json module. I have the following snippet of code in my server.js file:
const assetsJsonLocation = process.env.RAZZLE_ASSETS_MANIFEST
console.log('assets.json location is ', assetsJsonLocation);
const assets = require(assetsJsonLocation);
When logging the location everything is working fine, but when reaching the 3rd line, I get an error which tells me "Cannot find module" although the file is present.
What is the cause of that?
Beta Was this translation helpful? Give feedback.
All reactions