Skip to content

Minimal repro for an issue I ran into with local development using Vite.

Notifications You must be signed in to change notification settings

JeffSchofield/vite-module-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vite Module Bug

Related issue: #7454

Instructions to reproduce the issue:

  1. Run npm install for the UI package.
  2. Build the UI library with npm run build.
  3. Run npm install for the Website package.
  4. Run the website app with npm run dev --debug and load the page in a browser.

It should be broken with a bunch of warnings and a console error Cannot read properties of undefined (reading 'panelId').

The debug output should show that @headlessui/vue is being loaded from the ui-package modules folder instead of the website one:

vite:deps Scan completed in 152.49ms: {
  vue: 'E:/Work/vite-module-bug/website/node_modules/vue/dist/vue.runtime.esm-bundler.js',
  '@headlessui/vue': 'E:/Work/vite-module-bug/ui-library/node_modules/@headlessui/vue/dist/headlessui.esm.js'
}

About

Minimal repro for an issue I ran into with local development using Vite.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published