You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not work for me.
After npm run dev-build, I got an error as:
$ node ./packages/daemon/bootstrap.js
ERROR: Error reading "dist/config/config.js". Error: SyntaxError: Cannot use import statement outside a module
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @pipcook/daemon@1.1.2 migration: `sequelize-cli db:migrate`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @pipcook/daemon@1.1.2 migration script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /path/to/.npm/_logs/2020-08-27T16_17_29_953Z-debug.log
(node:16127) UnhandledPromiseRejectionWarning: Error: Command failed: npm run migration
ERROR: Error reading "dist/config/config.js". Error: SyntaxError: Cannot use import statement outside a module
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @pipcook/daemon@1.1.2 migration: `sequelize-cli db:migrate`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @pipcook/daemon@1.1.2 migration script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /path/to/.npm/_logs/2020-08-27T16_17_29_953Z-debug.log
at checkExecSyncError (child_process.js:630:11)
at execSync (child_process.js:666:15)
at bootstrap (/path/to/pipcook/packages/daemon/bootstrap.js:48:17)
at Object.<anonymous> (/path/to/pipcook/packages/daemon/bootstrap.js:97:3)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
(node:16127) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async functionwithout a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:16127) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
The text was updated successfully, but these errors were encountered:
It's not work for me.
After
npm run dev-build
, I got an error as:The text was updated successfully, but these errors were encountered: