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

Duplicated imports when using nuxt scripts in a layer #308

Open
remihuigen opened this issue Oct 24, 2024 · 2 comments
Open

Duplicated imports when using nuxt scripts in a layer #308

remihuigen opened this issue Oct 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@remihuigen
Copy link

🐛 The bug

Getting a whole bunch of duplicated imports from nuxt/scripts when running nuxi dev .playground.

A target app that's using this layer, shows no logs of duplicated imports. So this only happens when running a playground.

Attached a reproduction containing an empty nuxt layer, with only Nuxt Scripts installed as a module.

🛠️ To reproduce

https://stackblitz.com/github/onderwijsin/onderwijsloket-common?file=README.md

🌈 Expected behavior

No duplicated imports :)

ℹ️ Additional context

WARN  Duplicated imports "useScript", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/composables/useScript.js" is used  10:58:21 AM


[10:58:21 AM]  WARN  Duplicated imports "useScriptEventPage", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/composables/useScriptEventPage.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptTriggerConsent", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/composables/useScriptTriggerConsent.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptTriggerElement", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/composables/useScriptTriggerElement.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptClarity", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/clarity.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptCloudflareWebAnalytics", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/cloudflare-web-analytics.js" is used


 WARN  Duplicated imports "useScriptCrisp", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/crisp.js" is used    10:58:21 AM


[10:58:21 AM]  WARN  Duplicated imports "useScriptFathomAnalytics", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/fathom-analytics.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptGoogleAdsense", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/google-adsense.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptGoogleAnalytics", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/google-analytics.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptGoogleMaps", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/google-maps.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptGoogleTagManager", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/google-tag-manager.js" is used


 WARN  Duplicated imports "useScriptHotjar", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/hotjar.js" is used  10:58:21 AM


[10:58:21 AM]  WARN  Duplicated imports "useScriptIntercom", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/intercom.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptLemonSqueezy", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/lemon-squeezy.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptMatomoAnalytics", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/matomo-analytics.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptMetaPixel", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/meta-pixel.js" is used


 WARN  Duplicated imports "useScriptNpm", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/npm.js" is used        10:58:21 AM


[10:58:21 AM]  WARN  Duplicated imports "useScriptPlausibleAnalytics", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/plausible-analytics.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptSegment", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/segment.js" is used


 WARN  Duplicated imports "useScriptStripe", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/stripe.js" is used  10:58:21 AM


[10:58:21 AM]  WARN  Duplicated imports "useScriptVimeoPlayer", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/vimeo-player.js" is used


 WARN  Duplicated imports "useScriptXPixel", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/x-pixel.js" is used 10:58:21 AM


[10:58:21 AM]  WARN  Duplicated imports "useScriptYouTubePlayer", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/youtube-player.js" is used

ℹ Running with compatibility version 4                                                                                                                                                                                                                            10:58:21 AM

 WARN  Duplicated imports "useScript", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/composables/useScript.js" is used  10:58:21 AM


[10:58:21 AM]  WARN  Duplicated imports "useScriptEventPage", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/composables/useScriptEventPage.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptTriggerConsent", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/composables/useScriptTriggerConsent.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptTriggerElement", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/composables/useScriptTriggerElement.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptClarity", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/clarity.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptCloudflareWebAnalytics", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/cloudflare-web-analytics.js" is used


 WARN  Duplicated imports "useScriptCrisp", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/crisp.js" is used    10:58:21 AM


[10:58:21 AM]  WARN  Duplicated imports "useScriptFathomAnalytics", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/fathom-analytics.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptGoogleAdsense", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/google-adsense.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptGoogleAnalytics", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/google-analytics.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptGoogleMaps", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/google-maps.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptGoogleTagManager", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/google-tag-manager.js" is used


 WARN  Duplicated imports "useScriptHotjar", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/hotjar.js" is used  10:58:21 AM


[10:58:21 AM]  WARN  Duplicated imports "useScriptIntercom", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/intercom.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptLemonSqueezy", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/lemon-squeezy.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptMatomoAnalytics", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/matomo-analytics.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptMetaPixel", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/meta-pixel.js" is used


 WARN  Duplicated imports "useScriptNpm", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/npm.js" is used        10:58:21 AM


[10:58:21 AM]  WARN  Duplicated imports "useScriptPlausibleAnalytics", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/plausible-analytics.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptSegment", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/segment.js" is used


 WARN  Duplicated imports "useScriptStripe", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/stripe.js" is used  10:58:21 AM


[10:58:21 AM]  WARN  Duplicated imports "useScriptVimeoPlayer", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/vimeo-player.js" is used


 WARN  Duplicated imports "useScriptXPixel", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/x-pixel.js" is used 10:58:21 AM


[10:58:21 AM]  WARN  Duplicated imports "useScriptYouTubePlayer", the one from "#app/composables/script-stubs" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/youtube-player.js" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptPlausibleAnalytics", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/plausible-analytics.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/plausible-analytics" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptCloudflareWebAnalytics", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/cloudflare-web-analytics.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/cloudflare-web-analytics" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptFathomAnalytics", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/fathom-analytics.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/fathom-analytics" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptMatomoAnalytics", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/matomo-analytics.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/matomo-analytics" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptSegment", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/segment.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/segment" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptMetaPixel", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/meta-pixel.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/meta-pixel" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptXPixel", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/x-pixel.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/x-pixel" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptGoogleAdsense", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/google-adsense.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/google-adsense" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptIntercom", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/intercom.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/intercom" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptHotjar", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/hotjar.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/hotjar" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptClarity", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/clarity.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/clarity" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptStripe", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/stripe.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/stripe" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptLemonSqueezy", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/lemon-squeezy.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/lemon-squeezy" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptVimeoPlayer", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/vimeo-player.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/vimeo-player" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptYouTubePlayer", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/youtube-player.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/youtube-player" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptGoogleMaps", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/google-maps.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/google-maps" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptCrisp", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/crisp.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/crisp" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptNpm", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/npm.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/npm" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptGoogleTagManager", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/google-tag-manager.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/google-tag-manager" is used


[10:58:21 AM]  WARN  Duplicated imports "useScriptGoogleAnalytics", the one from "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/google-analytics.js" has been ignored and "/Users/remihuigen/local-projects/clients-onderwijsloket/onderwijsloket-common/node_modules/@nuxt/scripts/dist/runtime/registry/google-analytics" is used
@remihuigen remihuigen added the bug Something isn't working label Oct 24, 2024
@remihuigen
Copy link
Author

UPDATE: Just noticed that as soon as I remove @nuxt/scripts from the target apps devDependencies (which should be fine, since it's installed as a dependency of the layer), the duplicated imports warnings occur in the target app as well...

@remihuigen remihuigen changed the title Duplicated imports when running layer playground Duplicated imports when using nuxt scripts in a layer Oct 24, 2024
@L422Y
Copy link

L422Y commented Nov 15, 2024

i'm actually getting this without using layers:

[4:15:11 PM]  WARN  Duplicated imports "useScriptGoogleMaps", the one from "#app/composables/script-stubs" has been ignored and "/Users/larry/Development/test/app-debug/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]__@nuxt+devtools@_cbcf2370854887da015adfb8b52a6431/node_modules/@nuxt/scripts/dist/runtime/registry/google-maps" is used


[4:15:11 PM]  WARN  Duplicated imports "useScriptCrisp", the one from "#app/composables/script-stubs" has been ignored and "/Users/larry/Development/test/app-debug/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]__@nuxt+devtools@_cbcf2370854887da015adfb8b52a6431/node_modules/@nuxt/scripts/dist/runtime/registry/crisp" is used

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

2 participants