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

Can't deploy ran project to now #646

Open
anhntbk08 opened this issue May 15, 2019 · 0 comments
Open

Can't deploy ran project to now #646

anhntbk08 opened this issue May 15, 2019 · 0 comments

Comments

@anhntbk08
Copy link

I checked out the project then try to deploy to now but not succeeded. As default the repo doesn't have now.json, i added one and try to deploy, this is the error with next 7.x

`
/tmp/6b26f612/node_modules/next/dist/client/link.js:2
import { resolve, format, parse } from 'url';

                      SyntaxError: Unexpected token import
                          at createScript (vm.js:80:10)
                          at Object.runInThisContext (vm.js:139:10)
                          at Module._compile (module.js:616:28)
                          at Object.Module._extensions..js (module.js:663:10)
                          at Module.load (module.js:565:32)
                          at tryModuleLoad (module.js:505:12)
                          at Function.Module._load (module.js:497:3)
                          at Module.require (module.js:596:17)
                          at require (internal/module.js:11:18)
                          at Object.<anonymous> (/tmp/6b26f612/node_modules/next/link.js:1:80)
                          at Module._compile (module.js:652:30)
                          at Object.Module._extensions..js (module.js:663:10)
                          at Module.load (module.js:565:32)
                          at tryModuleLoad (module.js:505:12)
                          at Function.Module._load (module.js:497:3)
                          at Module.require (module.js:596:17)

2019-05-15T04:56:33.418Z error Command failed with exit code 1.
2019-05-15T04:56:33.419Z info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2019-05-15T04:56:33.427Z Error: Exited with 1
at ChildProcess.child.on (/tmp/utils/node_modules/@now/build-utils/dist/fs/run-user-scripts.js:28:24)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)`

I tried with next 8.x, the cli hold building forever and code can't be pushed.

Do you got any idea about this?
Thanks

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

1 participant