-
Notifications
You must be signed in to change notification settings - Fork 143
Description
After running the npm install and npm run build commands, I end up with a build folder at the root. I tell the server (via nodeJs setup on o2switch) that the application's startup file is "index.js," which is located in the build folder. But I get a series of errors that make me doubt the compatibility of the js-potential files.
I want to point out that I can successfully launch the application locally with the npm run dev command.
Thank you.
Here's an example of an error:
/home/ctoy8478/appnode1/index.js:1
import { handler } from './handler.js';
^
SyntaxError: Unexpected token {
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at Module.require (/opt/cpanel/ea-ruby27/root/usr/share/passenger/helper-scripts/node-loader.js:80:25)
at require (internal/modules/cjs/helpers.js:25:18)
at loadApplication (/opt/cpanel/ea-ruby27/root/usr/share/passenger/helper-scripts/node-loader.js:243:2)
at setupEnvironment (/opt/cpanel/ea-ruby27/root/usr/share/passenger/helper-scripts/node-loader.js:214:2)