Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed with https://vercel.com or now #9

Open
subhendukundu opened this issue Jun 28, 2020 · 5 comments
Open

Build failed with https://vercel.com or now #9

subhendukundu opened this issue Jun 28, 2020 · 5 comments

Comments

@subhendukundu
Copy link

I just quickly tried to deploy it to vercel domain using their build system. It failed.
I tried on my local to run it with 10.15.3, it is working.
Any idea how to deploy it to now or vercel?

@lyricat
Copy link
Owner

lyricat commented Jun 29, 2020

can you provide some build logs?

@subhendukundu
Copy link
Author

I am copy-pasting the error below.

$ nuxt-ts build
00:52:01.920  
 ERROR  Invalid or unexpected token
00:52:01.920  
  (function (exports, require, module, __filename, __dirname) { #!/usr/bin/env node
00:52:01.920  
  ^
00:52:01.920  
  
00:52:01.921  
  SyntaxError: Invalid or unexpected token
00:52:01.921  
  at new Script (vm.js:88:7)
00:52:01.921  
  at createScript (vm.js:263:10)
00:52:01.921  
  at Object.runInThisContext (vm.js:311:10)
00:52:01.921  
  at wrapSafe (internal/modules/cjs/loader.js:1057:15)
00:52:01.921  
  at Module._compile (internal/modules/cjs/loader.js:1120:27)
00:52:01.921  
  at Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
00:52:01.921  
  at Object.require.extensions.<computed> [as .js] (node_modules/ts-node/src/index.ts:529:44)
00:52:01.921  
  at Module.load (internal/modules/cjs/loader.js:1000:32)
00:52:01.921  
  at Function.Module._load (internal/modules/cjs/loader.js:899:14)
00:52:01.921  
  at Module.require (internal/modules/cjs/loader.js:1042:19)
00:52:01.944  
error Command failed with exit code 1.
00:52:01.944  
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
00:52:01.954  
Error: Command "yarn run build" exited with 1
00:52:04.547  
Done with "package.json"

@subhendukundu
Copy link
Author

I have tried on my local with node version v14.1.0 it throws the same error. But works when I switch the node version to v10.15.3.

@TgJump
Copy link

TgJump commented Jul 9, 2020

Node version 12.16.1 doesn't work either, just drop it to 10.15.3

@etewiah
Copy link

etewiah commented Feb 3, 2021

Encountered this same issue. Would love some pointer on how to fix this so I can run with the latest version of Node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants