nuxt / scripts

Third-Party Scripts Meets Nuxt Developer Experience.
https://scripts.nuxt.com
MIT License
340 stars 45 forks source link

Duplicated imports when using nuxt scripts in a layer #308

Open remihuigen opened 1 month ago

remihuigen commented 1 month ago

🐛 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 commented 1 month ago

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...

L422Y commented 1 week ago

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/@nuxt+scripts@0.9.5_@capacitor+preferences@6.0.2_@capacitor+core@6.1.2__@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/@nuxt+scripts@0.9.5_@capacitor+preferences@6.0.2_@capacitor+core@6.1.2__@nuxt+devtools@_cbcf2370854887da015adfb8b52a6431/node_modules/@nuxt/scripts/dist/runtime/registry/crisp" is used