Visitar URL original
Self-hosting fails · Issue #1 · vercel/ncc · GitHub
Skip to content

Self-hosting fails #1

Closed
Closed

Description

@rauchg

When I try to ncc ncc:

▲  ncc/ (master) ncc index.js
(node:22762) UnhandledPromiseRejectionWarning: Error: 'sync' is not exported by node_modules/resolve/index.js
    at error (/usr/local/lib/node_modules/@zeit/ncc/node_modules/rollup/dist/rollup.js:3460:30)
    at Module.error (/usr/local/lib/node_modules/@zeit/ncc/node_modules/rollup/dist/rollup.js:13349:9)
    at handleMissingExport (/usr/local/lib/node_modules/@zeit/ncc/node_modules/rollup/dist/rollup.js:13039:21)
    at Module.traceVariable (/usr/local/lib/node_modules/@zeit/ncc/node_modules/rollup/dist/rollup.js:13453:17)
    at ModuleScope.findVariable (/usr/local/lib/node_modules/@zeit/ncc/node_modules/rollup/dist/rollup.js:12726:29)
    at FunctionScope.Scope.findVariable (/usr/local/lib/node_modules/@zeit/ncc/node_modules/rollup/dist/rollup.js:4022:68)
    at Scope.findVariable (/usr/local/lib/node_modules/@zeit/ncc/node_modules/rollup/dist/rollup.js:4022:68)
    at BlockScope.Scope.findVariable (/usr/local/lib/node_modules/@zeit/ncc/node_modules/rollup/dist/rollup.js:4022:68)
    at FunctionScope.Scope.findVariable (/usr/local/lib/node_modules/@zeit/ncc/node_modules/rollup/dist/rollup.js:4022:68)
    at Scope.findVariable (/usr/local/lib/node_modules/@zeit/ncc/node_modules/rollup/dist/rollup.js:4022:68)
(node:22762) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:22762) [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.

Activity

  1. rauchg commented on Nov 14, 2018

    @rauchg
    MemberAuthor

    New error:

    ▲  ncc/ (master) ncc index.js
    (node:27998) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'type' of null
        at extractNames (/usr/local/lib/node_modules/@zeit/ncc/node_modules/rollup-pluginutils/dist/pluginutils.cjs.js:60:20)
        at /usr/local/lib/node_modules/@zeit/ncc/node_modules/rollup-pluginutils/dist/pluginutils.cjs.js:76:4
        at Array.forEach (<anonymous>)
        at new Scope (/usr/local/lib/node_modules/@zeit/ncc/node_modules/rollup-pluginutils/dist/pluginutils.cjs.js:75:18)
        at Object.enter (/usr/local/lib/node_modules/@zeit/ncc/node_modules/rollup-pluginutils/dist/pluginutils.cjs.js:152:16)
        at visit (/usr/local/lib/node_modules/@zeit/ncc/node_modules/estree-walker/dist/estree-walker.umd.js:31:9)
        at visit (/usr/local/lib/node_modules/@zeit/ncc/node_modules/estree-walker/dist/estree-walker.umd.js:53:4)
        at visit (/usr/local/lib/node_modules/@zeit/ncc/node_modules/estree-walker/dist/estree-walker.umd.js:48:5)
        at visit (/usr/local/lib/node_modules/@zeit/ncc/node_modules/estree-walker/dist/estree-walker.umd.js:53:4)
        at visit (/usr/local/lib/node_modules/@zeit/ncc/node_modules/estree-walker/dist/estree-walker.umd.js:53:4)
    (node:27998) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
    (node:27998) [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.
    
  2. guybedford commented on Nov 15, 2018

    @guybedford
    Contributor

    Here's a nicer one-liner for testing the full execution - ncc index.js | node -

  3. guybedford commented on Nov 15, 2018

    @guybedford
    Contributor

    I've confirmed that this bug is fixed by rollup/rollup-pluginutils#44.

    After that, the execution bug then becomes the standard cycles bug on streams I believe.

  4. added a commit that references this issue on Aug 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions