Skip to content

Error: "ReferenceError: c is not defined" when my story imports a component from 'pnpm link' #24032

Discussion options

You must be logged in to vote

After a long search, I solved this by setting this vite config:

export default defineConfig({
  plugins: [react()],
  resolve: {
    preserveSymlinks: true
  }
})

Hope this might help someone.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by FranciscoGileno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant