Skip to content

Unable to install some scripts in version 1.4.0 #7455

Closed
@oscarotero

Description

@oscarotero

Hi, I just upgraded to the latest version and am having some problems installing libraries.

I'm working on this static site generator: https://deno.land/x/[email protected]

I've a downgrade to 1.3.3 and the library is installed and work fine:

$ deno upgrade --version 1.3.3
$ deno install -f --unstable --allow-read --allow-write --allow-net https://deno.land/x/[email protected]/cli.js
$ lume

#Site build successfully

But after upgrade to 1.4.0:

$ deno upgrade --version 1.4.0
$ deno install -f --unstable --allow-read --allow-write --allow-net https://deno.land/x/[email protected]/cli.js
$ lume

error: Uncaught TypeError: Cannot read property 'default' of undefined
export default __exp["default"];
                    ^
    at file:///Users/oscarotero/.deno/bin/lume.js:47172:21

The library works fine if it's executed locally, without install it (with deno run --unstable --allow-read --allow-write --allow-net cli.js), but it's failing on install. And because in the new version, the code is bundled before installation, I cannot know what is the source's filename and line that is failing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions