-
-
Notifications
You must be signed in to change notification settings - Fork 486
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
Issue with Nuxt 3 Layers and Nuxt i18n with remote layer #2491
Comments
Would you be able to provide a reproduction? 🙏 More infoWhy do I need to provide a reproduction?Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making. What will happen?If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect. If How can I create a reproduction?We have a couple of templates for starting with a minimal reproduction: 👉 Reproduction starter (v8 and higher) A public GitHub repository is also perfect. 👌 Please ensure that the reproduction is as minimal as possible. See more details in our guide. You might also find these other articles interesting and/or helpful: |
Thank you for opening an issue. Just to inform as written in the discussion: |
I would like to look into this issue but I will need a minimal reproduction to debug the exact issue. 😅 Nuxt |
Reproduction Steps
Note: Both, Layer and App do not have any configuration in their nuxt.config.ts, because the issue is in the installation of the layer. You should observe this error:
|
@derHodrig
It's a good reproduction! As it is an npm package it is a bit hard to make changes and test, but that's something inherent to this specific issue 😅 |
@BobbieGoede did not think that this problem is that simple solved. @SGDS-SyL could you please rename your In my case, in the reproduction, the issue was solved. Downturn is, after your install deps in the layer, you have to manually use the |
Glad to hear the issue was solved for you!
Hmm, have you tried updating the module to the latest edge release and seeing if the error is still thrown when keeping the
I believe the code that is throwing this error has been removed and is not present in the edge release. |
Running into the same issue as discussion, Layer works locally but when changed to Github repo. It failed with this:
Failed to resolve import "/lang/en.json" from ".nuxt\i18n.options.mjs"
I've checked and the file do exist.
Discussed in #2388
Originally posted by ionutfrent September 8, 2023
Issue Description
Package Name/Repository: Nuxt 3 with Layers
Nuxt i18n Version: "@nuxtjs/i18n": "v8.0.0-rc.4"
Issue Details
I am currently working with Nuxt 3 Layers for my project. When I extend Layers from local repositories, everything works perfect. However, when I try to extend Layers from a GitHub repository link, I encounter an issue with the Nuxt i18n package. The specific error message I'm getting is:
ERROR No lockfile found from /***/node_modules/base-app
It's important to note that I have the latest version of "@nuxtjs/i18n" (v8.0.0-rc.4) installed in all Layers.
Steps to Reproduce
To reproduce this issue, follow these steps:
Create a Nuxt 3 project as a base Layer.
Use Nuxt i18n in the base Layer.
Push the project to a GitHub repository.
Create a Nuxt 3 project which extends the base Layer from the GitHub repository link.
Install the dependencies.
The base-app layer is added as a dependency in package.json as follows:
"dependencies": { "base-app": "git+ssh://github_pat_***@github.com:***/base-app.git" }
Expected Behavior
I expected the project to run without errors when extending Layers from a GitHub repository while using the latest version of Nuxt i18n.
Actual Behavior
Instead, I encountered the "No lockfile found" error as described above.
Additional Notes
I'd like to highlight that the described issue appears to be introduced in the latest versions of the library. To provide some context, I experimented with an alpha version of the library, and I couldn't reproduce the issue. This suggests that there might be a regression or compatibility issue in the most recent releases of the library, specifically affecting projects using Nuxt 3 Layers in conjunction with Nuxt i18n.
cc/ @kazupon
I would appreciate any assistance or insights from the community or individuals experienced with Nuxt 3 Layers and Nuxt i18n.
The text was updated successfully, but these errors were encountered: