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

Error with fresh Lyra installation #27

Closed
mateonunez opened this issue Jul 18, 2022 · 6 comments
Closed

Error with fresh Lyra installation #27

mateonunez opened this issue Jul 18, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@mateonunez
Copy link
Collaborator

Describe the bug
I've created a new project where I wanted to implement Lyra, so I've added it as a dependency. When I've try to import Lyra, I get the following output error:

❯ npm run test

> new-lyra@1.0.0 test
> node index.js

node:internal/errors:465
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '~/dev/new-lyra/node_modules/@nearform/lyra/' imported from ~/dev/new-lyra/index.js

To Reproduce
Steps to reproduce the behavior:

  1. Create a new empty JS project: npm init --yes
  2. Install Lyra as a dependency: npm install @nearform/lyra
  3. Create a simple file that imports Lyra.
  4. Run it.

Screenshots

This is the content of Lyra's directory inside node_modules

image

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS Monterey 12.4
  • Environment: Node
  • Node: v18.6.0
  • npm: v8.14.0
  • Lyra: v0.0.1-beta-11

Additional context

I've created a repository with the reproduced error hoping it could be useful.

@micheleriva
Copy link
Member

Ush. Thanks for firing this, I'm fixing it with the next release

@micheleriva
Copy link
Member

Should be fixed in v0.0.1-beta-12 🙂

@mateonunez
Copy link
Collaborator Author

Sorry for commenting a closed issue @micheleriva, but I wanna let you know that the error persists even with the v0.0.1-beta-12 version.

@thomscoder
Copy link
Contributor

Sorry for commenting a closed issue @micheleriva, but I wanna let you know that the error persists even with the v0.0.1-beta-12 version.

i confirm. index.js keeps not getting created.
Tested on both Monterey 12.4 and Windows 10 Pro

@micheleriva micheleriva reopened this Jul 18, 2022
@micheleriva
Copy link
Member

That's alright, I'll reopen the issue and test the publication via Verdaccio

@micheleriva micheleriva added the bug Something isn't working label Jul 18, 2022
@micheleriva micheleriva self-assigned this Jul 18, 2022
@micheleriva
Copy link
Member

Fixed and tested on 0.0.1-beta-13

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants