nuxt / bridge

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

occur error when import "node:something" #1301

Open kyumoon opened 2 months ago

kyumoon commented 2 months ago

Environment

Reproduction

https://github.com/kyumoon/nuxt-birdge-example/tree/test/ofetch

Describe the bug

I am currently developing in a 'bridge + webpack' environment and found an error while trying to integrate ofetch in advance for migration. The error is the same as the issue reported https://github.com/nuxt/bridge/issues/1066. closed PR: https://github.com/unjs/ofetch/pull/433

From what I have identified, imports with the 'node:' prefix do not work properly and need to be removed for the 'webpack + bridge' environment to function correctly.

스크린샷 2024-08-28 오후 5 54 50

Additional context

No response

Logs

No response

wattanx commented 2 months ago

This may be a problem with Nuxt 2 rather than Nuxt Bridge. (as it also occurs without the nuxt bridge).