Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

fix(nuxt): resolve vue/server-renderer and vue/compiler-sfc #4488

Closed
wants to merge 3 commits into from

Conversation

antfu
Copy link
Member

@antfu antfu commented Apr 21, 2022

πŸ”— Linked issue

Partially fix nuxt/nuxt#13700

It will be fixed by the combination of this PR and nitrojs/nitro#136

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@netlify
Copy link

netlify bot commented Apr 21, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit 9126402
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/62626e80db01330008768c33

Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@pi0 pi0 changed the title fix: resolve vue/server-renderer and vue/compiler-sfc fix(nuxt): resolve vue/server-renderer and vue/compiler-sfc Apr 22, 2022
@@ -64,8 +64,8 @@ export async function initNitro (nuxt: Nuxt) {
},
alias: {
// TODO: #590
'vue/server-renderer': 'vue/server-renderer',
'vue/compiler-sfc': 'vue/compiler-sfc',
'vue/server-renderer': await resolvePath('vue/server-renderer', { conditions: ['import'] }),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess mlly resolver should apply import condition by default following module resolution. But we can path url (as node modules dir search path to it so that if a newer version is specified by users will be picked, same as resolvePath in kit)

@pi0
Copy link
Member

pi0 commented Apr 25, 2022

@antfu Can you please check if we still need this with last version of nitro with node_modules fix?

@pi0 pi0 added the pending label Apr 25, 2022
@antfu
Copy link
Member Author

antfu commented Apr 25, 2022

I can confirm it's fixed by upgrading nitropack to v0.3.7. Awesome!

@antfu antfu closed this Apr 25, 2022
@pi0 pi0 deleted the fix/monorepo-support branch April 25, 2022 16:42
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to resolve dependencies when starting Nuxt under workspaces
3 participants