webmandman
webmandman
SSolidJS
Created by webmandman on 1/22/2024 in #support
cannot use import statement outside a module
just pushed my first solidstart app to azure cloud but vinxi start is failing. app works fine in local dev mode. i'm using github actions to deploy to azure app service.
2024-01-22T23:37:36.595785015Z > start
2024-01-22T23:37:36.595807615Z > vinxi start
2024-01-22T23:37:36.595811515Z
2024-01-22T23:37:38.142761667Z (node:108) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
2024-01-22T23:37:38.142842867Z (Use `node --trace-warnings ...` to show where the warning was created)
2024-01-22T23:37:38.155024316Z /home/site/wwwroot/node_modules/.bin/vinxi:2
2024-01-22T23:37:38.155051816Z import { defineCommand, runMain } from "citty";
2024-01-22T23:37:38.155098217Z ^^^^^^
2024-01-22T23:37:38.155103217Z
2024-01-22T23:37:38.155106817Z SyntaxError: Cannot use import statement outside a module
2024-01-22T23:37:38.155110617Z at internalCompileFunction (node:internal/vm:73:18)
2024-01-22T23:37:38.155114217Z at wrapSafe (node:internal/modules/cjs/loader:1178:20)
2024-01-22T23:37:38.155118017Z at Module._compile (node:internal/modules/cjs/loader:1220:27)
2024-01-22T23:37:38.155121717Z at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
2024-01-22T23:37:38.155125417Z at Module.load (node:internal/modules/cjs/loader:1119:32)
2024-01-22T23:37:38.155128917Z at Module._load (node:internal/modules/cjs/loader:960:12)
2024-01-22T23:37:38.155132617Z at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
2024-01-22T23:37:38.155136317Z at node:internal/main/run_main_module:23:47
2024-01-22T23:37:38.161784444Z
2024-01-22T23:37:38.161805044Z Node.js v18.17.1
2024-01-22T23:37:36.595785015Z > start
2024-01-22T23:37:36.595807615Z > vinxi start
2024-01-22T23:37:36.595811515Z
2024-01-22T23:37:38.142761667Z (node:108) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
2024-01-22T23:37:38.142842867Z (Use `node --trace-warnings ...` to show where the warning was created)
2024-01-22T23:37:38.155024316Z /home/site/wwwroot/node_modules/.bin/vinxi:2
2024-01-22T23:37:38.155051816Z import { defineCommand, runMain } from "citty";
2024-01-22T23:37:38.155098217Z ^^^^^^
2024-01-22T23:37:38.155103217Z
2024-01-22T23:37:38.155106817Z SyntaxError: Cannot use import statement outside a module
2024-01-22T23:37:38.155110617Z at internalCompileFunction (node:internal/vm:73:18)
2024-01-22T23:37:38.155114217Z at wrapSafe (node:internal/modules/cjs/loader:1178:20)
2024-01-22T23:37:38.155118017Z at Module._compile (node:internal/modules/cjs/loader:1220:27)
2024-01-22T23:37:38.155121717Z at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
2024-01-22T23:37:38.155125417Z at Module.load (node:internal/modules/cjs/loader:1119:32)
2024-01-22T23:37:38.155128917Z at Module._load (node:internal/modules/cjs/loader:960:12)
2024-01-22T23:37:38.155132617Z at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
2024-01-22T23:37:38.155136317Z at node:internal/main/run_main_module:23:47
2024-01-22T23:37:38.161784444Z
2024-01-22T23:37:38.161805044Z Node.js v18.17.1
24 replies