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

Installation of dependency es-module-shims fails #1

Open
diegosanchezp opened this issue Aug 17, 2020 · 1 comment
Open

Installation of dependency es-module-shims fails #1

diegosanchezp opened this issue Aug 17, 2020 · 1 comment

Comments

@diegosanchezp
Copy link

Hi @nestarz

First I want to congratulate you, for such a great idea on package management, I saw your post on reddit an immediately started to play around with heritage. I'm writing a post on import maps and included a section dedicated to heritage.

As the title says the installation of es-module-shims fails, this is the only dependency I've installed that give me problems.

I'm working with node version v14.5.0 and yarn

I'm doing the following

npx heritage add es-module-shims

Which trows the error

Heritage Package Manager
Installing [email protected] from pika registry.
(node:18925) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token (1:3)
    at Parser.pp$4.raise (/media/diego/Windows/Users/diego/Documents/Web Development/WebComponents/heritage/node_modules/acorn/dist/acorn.js:2927:15)
    at Parser.pp.unexpected (/media/diego/Windows/Users/diego/Documents/Web Development/WebComponents/heritage/node_modules/acorn/dist/acorn.js:698:10)
    at Parser.pp.semicolon (/media/diego/Windows/Users/diego/Documents/Web Development/WebComponents/heritage/node_modules/acorn/dist/acorn.js:675:66)
    at Parser.pp$1.parseExpressionStatement (/media/diego/Windows/Users/diego/Documents/Web Development/WebComponents/heritage/node_modules/acorn/dist/acorn.js:1154:10)
    at Parser.pp$1.parseStatement (/media/diego/Windows/Users/diego/Documents/Web Development/WebComponents/heritage/node_modules/acorn/dist/acorn.js:889:26)
    at Parser.pp$1.parseTopLevel (/media/diego/Windows/Users/diego/Documents/Web Development/WebComponents/heritage/node_modules/acorn/dist/acorn.js:755:23)
    at Parser.parse (/media/diego/Windows/Users/diego/Documents/Web Development/WebComponents/heritage/node_modules/acorn/dist/acorn.js:555:17)
    at Function.parse (/media/diego/Windows/Users/diego/Documents/Web Development/WebComponents/heritage/node_modules/acorn/dist/acorn.js:578:37)
    at Object.parse (/media/diego/Windows/Users/diego/Documents/Web Development/WebComponents/heritage/node_modules/acorn/dist/acorn.js:5143:19)
    at detective (file:///media/diego/Windows/Users/diego/Documents/Web%20Development/WebComponents/heritage/node_modules/@eliaspourquoi/heritage/src/walker.js:76:21)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:18925) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:18925) [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.

Any hints on why it might be failing?
Has it happened to you?

Thanks in advance.

@nestarz
Copy link
Owner

nestarz commented Nov 15, 2021

You may try to use @eliaspourquoi/heritage instead using npx

➜  test git:(main) ✗ npx @eliaspourquoi/heritage add es-module-shims
Heritage Package Manager
Installing [email protected] from pika registry.
Done.

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

2 participants