Skip to content

Can't deploy ran project to now #646

@anhntbk08

Description

@anhntbk08

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions