I just followed the instruction as per this page frontity .org /deployment page to deploy my build folder onto my own nodejs server. Then when I try to run the build by using:
npx frontity serve
I am getting the following error:
Error: Cannot find module '@frontity/core'
Specific errors you’re getting in the terminal or in the browser’s console
Welcome to the forum. Make sure that you’re running npx frontity serve from the root of the project folder. I suspect that you’re running the command from another folder, though let me know if this is not the case. Also please let me know if this solves the problem.
⬢ error-cannot-find-module-frontity-core-2180 î‚ master ⦿ npx vercel --prod
Vercel CLI 19.1.1
? Set up and deploy “~/PROJECTS/2020/FRONTITY/COMMUNITY/JUNE/error-cannot-find-module-frontity-core-2180”? [Y/n] y
? Which scope do you want to deploy to? Frontity Demos
? Link to existing project? [y/N] n
? What’s your project’s name? error-cannot-find-module-frontity-core-2180
? In which directory is your code located? ./
đź”— Linked to frontity-demos/error-cannot-find-module-frontity-core-2180 (created .vercel and added it to .gitignore)
🔍 Inspect: https://vercel.com/frontity-demos/error-cannot-find-module-frontity-core-2180/254pn0egp [24s]
âś… Production: https://error-cannot-find-module-frontity-core-2180.vercel.app [copied to clipboard] [2m]
The only error I had to fix from your remote repo was a missing dependency in the package.json that I solved by doing