nuxt / bridge

🌉 Experience Nuxt 3 features on existing Nuxt 2 projects
MIT License
273 stars 29 forks source link

Warnings import from #app and vue #82

Closed Luferov closed 2 years ago

Luferov commented 2 years ago

Environment

Reproduction

https://github.com/devind-team/devind-template

Steps:

Describe the bug

I gotting warnings when run in dev and prod mode.

warn in in ./.nuxt/imports.mjs:

Additional context

image

Logs

No response

alekcahdp commented 2 years ago

I have the same problem

rvmourik commented 2 years ago

Same here

AndreyYolkin commented 2 years ago

Same

ahmedkamalio commented 2 years ago

I'm having another warning

 WARN  [SSR] Error transforming virtual:/project-root/.nuxt/paths.mjs: Failed to resolve import "#_config" from "virtual:/project-root/.nuxt/paths.mjs". Does the file exist?

  at formatError (node_modules/vite/dist/node/chunks/dep-9c153816.js:38098:46)
  at TransformContext.error (node_modules/vite/dist/node/chunks/dep-9c153816.js:38094:19)
  at normalizeUrl (node_modules/vite/dist/node/chunks/dep-9c153816.js:69819:26)
  at async TransformContext.transform (node_modules/vite/dist/node/chunks/dep-9c153816.js:69959:57)
  at async Object.transform (node_modules/vite/dist/node/chunks/dep-9c153816.js:38334:30)
  at async doTransform (node_modules/vite/dist/node/chunks/dep-9c153816.js:53030:29)

not sure if it's related to this one?

danielroe commented 2 years ago

@ahmedmkamal No, that's a different issue, which should now be resolved by https://github.com/nuxt/framework/pull/3848.

ahmedkamalio commented 2 years ago

@danielroe Okay, thank you!

jozefvodicka commented 5 months ago

Our solution: You have to make sure latest version of vue 2.17.16 is being used. In our project we had in root package.json "resolutions" set for vue to 2.16.0 so it never updated to 2.17.x which includes some breaking changes. In case you use yarn run command "yarn why vue" or "npm ls vue"