vite: Vite 2.4.x can't find sass

Describe the bug

Upgrading to either 2.4.0 or 2.4.1 causes vite to stop finding sass. 2.3.8 is fine. My App.vue uses scss style import.

Check out reproduction link. main branch has 2.3.8 works fine, vite-2.4.x-bug branch has the issue.

11:01:26 PM [vite] Internal server error: Preprocessor dependency "sass" not found. Did you install it?
  Plugin: vite:css
  File: C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/App.vue?vue&type=style&index=0&lang.scss
      at loadPreprocessor (C:\Users\bgonz\Source\repos\Sheep.CommandAndControl\src\ListeningPostWebUi\.yarn\cache\vite-npm-2.4.0-516cefe241-ca7336ae31.zip\node_modules\vite\dist\node\chunks\dep-fc2895ac.js:28144:15)
      at scss (C:\Users\bgonz\Source\repos\Sheep.CommandAndControl\src\ListeningPostWebUi\.yarn\cache\vite-npm-2.4.0-516cefe241-ca7336ae31.zip\node_modules\vite\dist\node\chunks\dep-fc2895ac.js:28149:20)
      at compileCSS (C:\Users\bgonz\Source\repos\Sheep.CommandAndControl\src\ListeningPostWebUi\.yarn\cache\vite-npm-2.4.0-516cefe241-ca7336ae31.zip\node_modules\vite\dist\node\chunks\dep-fc2895ac.js:27893:40)
      at async TransformContext.transform (C:\Users\bgonz\Source\repos\Sheep.CommandAndControl\src\ListeningPostWebUi\.yarn\cache\vite-npm-2.4.0-516cefe241-ca7336ae31.zip\node_modules\vite\dist\node\chunks\dep-fc2895ac.js:27563:50)
      at async Object.transform (C:\Users\bgonz\Source\repos\Sheep.CommandAndControl\src\ListeningPostWebUi\.yarn\cache\vite-npm-2.4.0-516cefe241-ca7336ae31.zip\node_modules\vite\dist\node\chunks\dep-fc2895ac.js:50336:30)
      at async transformRequest (C:\Users\bgonz\Source\repos\Sheep.CommandAndControl\src\ListeningPostWebUi\.yarn\cache\vite-npm-2.4.0-516cefe241-ca7336ae31.zip\node_modules\vite\dist\node\chunks\dep-fc2895ac.js:65912:29)
      at async viteTransformMiddleware (C:\Users\bgonz\Source\repos\Sheep.CommandAndControl\src\ListeningPostWebUi\.yarn\cache\vite-npm-2.4.0-516cefe241-ca7336ae31.zip\node_modules\vite\dist\node\chunks\dep-fc2895ac.js:66050:32)

Reproduction

https://github.com/SheepReaper/Sheep.CommandAndControl.git

cd src/ListeningPostWebUi
yarn dev

System Info

System:
    OS: Windows 10 10.0.19043
    CPU: (8) x64 AMD FX-8370 Eight-Core Processor
    Memory: 16.01 GB / 31.97 GB
  Binaries:
    Node: 16.4.2 - ~\AppData\Local\Temp\xfs-4f808684\node.EXE
    Yarn: 2.4.2 - ~\AppData\Local\Temp\xfs-4f808684\yarn.EXE
    npm: 7.18.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1023.0), Chromium (91.0.864.64)
    Internet Explorer: 11.0.19041.1

Used Package Manager

yarn

Logs

vite:config bundled config file loaded in 842ms +0ms
  vite:config using resolved config: {
  vite:config   plugins: [
  vite:config     'vite:pre-alias',
  vite:config     'alias',
  vite:config     'vite:dynamic-import-polyfill',
  vite:config     'vite:resolve',
  vite:config     'vite:html',
  vite:config     'vite:css',
  vite:config     'vite:esbuild',
  vite:config     'vite:json',
  vite:config     'vite:wasm',
  vite:config     'vite:worker',
  vite:config     'vite:asset',
  vite:config     'vite:vue',
  vite:config     'vite-plugin-pug',
  vite:config     'vite:define',
  vite:config     'vite:css-post',
  vite:config     'vite:client-inject',
  vite:config     'vite:import-analysis'
  vite:config   ],
  vite:config   resolve: { dedupe: undefined, alias: [ [Object], [Object] ] },
  vite:config   server: { fs: { strict: undefined, allow: [Array] } },
  vite:config   define: { __VUE_OPTIONS_API__: true, __VUE_PROD_DEVTOOLS__: false },
  vite:config   ssr: { external: [ 'vue', '@vue/server-renderer' ] },
  vite:config   configFile: 'C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/vite.config.ts',
  vite:config   configFileDependencies: [ 'vite.config.ts' ],
  vite:config   inlineConfig: {
  vite:config     root: undefined,
  vite:config     base: undefined,
  vite:config     mode: undefined,
  vite:config     configFile: undefined,
  vite:config     logLevel: undefined,
  vite:config     clearScreen: undefined,
  vite:config     server: { fs: [Object] }
  vite:config   },
  vite:config   root: 'C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi',
  vite:config   base: '/',
  vite:config   publicDir: 'C:\\Users\\bgonz\\Source\\repos\\Sheep.CommandAndControl\\src\\ListeningPostWebUi\\public',
  vite:config   cacheDir: 'C:\\Users\\bgonz\\Source\\repos\\Sheep.CommandAndControl\\src\\ListeningPostWebUi\\node_modules\\.vite',
  vite:config   command: 'serve',
  vite:config   mode: 'development',
  vite:config   isProduction: false,
  vite:config   build: {
  vite:config     target: [ 'es2019', 'edge88', 'firefox78', 'chrome87', 'safari13.1' ],
  vite:config     polyfillDynamicImport: false,
  vite:config     outDir: 'dist',
  vite:config     assetsDir: 'assets',
  vite:config     assetsInlineLimit: 4096,
  vite:config     cssCodeSplit: true,
  vite:config     sourcemap: false,
  vite:config     rollupOptions: {},
  vite:config     commonjsOptions: { include: [Array], extensions: [Array] },
  vite:config     dynamicImportVarsOptions: { warnOnError: true, exclude: [Array] },
  vite:config     minify: 'terser',
  vite:config     terserOptions: {},
  vite:config     cleanCssOptions: {},
  vite:config     write: true,
  vite:config     emptyOutDir: null,
  vite:config     manifest: false,
  vite:config     lib: false,
  vite:config     ssr: false,
  vite:config     ssrManifest: false,
  vite:config     brotliSize: true,
  vite:config     chunkSizeWarningLimit: 500,
  vite:config     watch: null
  vite:config   },
  vite:config   env: { BASE_URL: '/', MODE: 'development', DEV: true, PROD: false },
  vite:config   assetsInclude: [Function: assetsInclude],
  vite:config   logger: {
  vite:config     hasWarned: false,
  vite:config     info: [Function: info],
  vite:config     warn: [Function: warn],
  vite:config     warnOnce: [Function: warnOnce],
  vite:config     error: [Function: error],
  vite:config     clearScreen: [Function: clearScreen]
  vite:config   },
  vite:config   createResolver: [Function: createResolver],
  vite:config   optimizeDeps: { esbuildOptions: { keepNames: undefined } }
  vite:config } +11ms
  vite:deps Hash is consistent. Skipping. Use --force to override. +0ms
Port 3000 is in use, trying another one...
  vite:deps Hash is consistent. Skipping. Use --force to override. +20ms

  vite v2.4.0 dev server running at:

  > Local: http://localhost:3001/
  > Network: use `--host` to expose

  ready in 1455ms.

  vite:time 1ms   / +0ms
  vite:resolve 4ms   /command -> null +0ms
  vite:spa-fallback Rewriting GET /command to /index.html +0ms
  vite:time 119ms /index.html +143ms
  vite:resolve 7ms   /Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/.yarn/cache/vite-npm-2.4.0-516cefe241-ca7336ae31.zip/node_modules/vite/dist/client/client -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/.yarn/cache/vite-npm-2.4.0-516cefe241-ca7336ae31.zip/node_modules/vite/dist/client/client.mjs +161ms
  vite:resolve 7ms   /@vite/client -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/.yarn/cache/vite-npm-2.4.0-516cefe241-ca7336ae31.zip/node_modules/vite/dist/client/client.mjs +0ms
  vite:load 4ms   [fs] /@vite/client +0ms
  vite:resolve 2ms   ./env -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/.yarn/cache/vite-npm-2.4.0-516cefe241-ca7336ae31.zip/node_modules/vite/dist/client/env.mjs +33ms
  vite:resolve 0ms   /.yarn/cache/vite-npm-2.4.0-516cefe241-ca7336ae31.zip/node_modules/vite/dist/client/env.mjs -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/.yarn/cache/vite-npm-2.4.0-516cefe241-ca7336ae31.zip/node_modules/vite/dist/client/env.mjs +2ms
  vite:transform 21ms  /@vite/client +0ms
  vite:time 49ms  /@vite/client +94ms
  vite:resolve 1ms   /src/main.ts -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/main.ts +10ms
  vite:load 9ms   [fs] /src/main.ts +45ms
  vite:load 7ms   [fs] /.yarn/cache/vite-npm-2.4.0-516cefe241-ca7336ae31.zip/node_modules/vite/dist/client/env.mjs +6ms
  vite:rewrite 0ms   [no imports] .yarn\cache\vite-npm-2.4.0-516cefe241-ca7336ae31.zip\node_modules\vite\dist\client\env.mjs +0ms
  vite:transform 2ms   /.yarn/cache/vite-npm-2.4.0-516cefe241-ca7336ae31.zip/node_modules/vite/dist/client/env.mjs +25ms
  vite:time 16ms  /.yarn/cache/vite-npm-2.4.0-516cefe241-ca7336ae31.zip/node_modules/vite/dist/client/env.mjs +26ms
  vite:resolve 0ms   vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/node_modules/.vite/vue.js?v=8ff8af02 +28ms
  vite:resolve 1ms   /node_modules/.vite/vue.js?v=8ff8af02 -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/node_modules/.vite/vue.js?v=8ff8af02 +1ms
  vite:resolve 5ms   ./router -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/router.ts +6ms
  vite:resolve 1ms   /src/router.ts -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/router.ts +2ms
  vite:resolve 2ms   ./store -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/store/index.ts +2ms
  vite:resolve 0ms   /src/store/index.ts -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/store/index.ts +1ms
  vite:resolve 0ms   ./App.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/App.vue +1ms
  vite:resolve 1ms   /src/App.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/App.vue +1ms
  vite:transform 37ms  /src/main.ts +28ms
  vite:time 51ms  /src/main.ts +27ms
  vite:load 20ms  [fs] /src/router.ts +77ms
  vite:load 37ms  [fs] /src/store/index.ts +19ms
  vite:resolve 0ms   vue-router -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/node_modules/.vite/vue-router.js?v=8ff8af02 +105ms
  vite:resolve 1ms   /node_modules/.vite/vue-router.js?v=8ff8af02 -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/node_modules/.vite/vue-router.js?v=8ff8af02 +3ms
  vite:resolve 1ms   ./views/Home.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/views/Home.vue +2ms
  vite:resolve 1ms   /src/views/Home.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/views/Home.vue +1ms
  vite:resolve 0ms   ./views/Command.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/views/Command.vue +1ms
  vite:resolve 1ms   /src/views/Command.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/views/Command.vue +2ms
  vite:resolve 1ms   ./views/FileReader.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/views/FileReader.vue +3ms
  vite:resolve 0ms   /src/views/FileReader.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/views/FileReader.vue +1ms
  vite:resolve 1ms   ./views/ApiDocs.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/views/ApiDocs.vue +2ms
  vite:resolve 1ms   /src/views/ApiDocs.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/views/ApiDocs.vue +3ms
  vite:resolve 1ms   ./views/NotImplemented.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/views/NotImplemented.vue +1ms     
  vite:resolve 1ms   /src/views/NotImplemented.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/views/NotImplemented.vue +1ms  
  vite:transform 79ms  /src/router.ts +125ms
  vite:time 103ms /src/router.ts +125ms
  vite:resolve 0ms   vuex -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/node_modules/.vite/vuex.js?v=8ff8af02 +15ms
  vite:resolve 1ms   /node_modules/.vite/vuex.js?v=8ff8af02 -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/node_modules/.vite/vuex.js?v=8ff8af02 +4ms
  vite:resolve 1ms   ./getters -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/store/getters.ts +9ms
  vite:resolve 0ms   /src/store/getters.ts -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/store/getters.ts +1ms
  vite:resolve 5ms   ./actions -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/store/actions.ts +12ms
  vite:resolve 0ms   /src/store/actions.ts -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/store/actions.ts +2ms
  vite:resolve 1ms   ./mutations -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/store/mutations.ts +2ms
  vite:resolve 0ms   /src/store/mutations.ts -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/store/mutations.ts +1ms
  vite:transform 84ms  /src/store/index.ts +42ms
  vite:time 143ms /src/store/index.ts +42ms
  vite:load 1ms   [fs] /src/store/getters.ts +123ms
  vite:rewrite 0ms   [no imports] src\store\getters.ts +225ms
  vite:transform 8ms   /src/store/getters.ts +30ms
  vite:time 13ms  /src/store/getters.ts +29ms
  vite:load 9ms   [fs] /src/store/actions.ts +18ms
  vite:load 3ms   [fs] /src/store/mutations.ts +2ms
  vite:resolve 2ms   ../api -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/api.ts +45ms
  vite:resolve 1ms   /src/api.ts -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/api.ts +4ms
  vite:transform 12ms  /src/store/actions.ts +21ms
  vite:time 24ms  /src/store/actions.ts +21ms
  vite:rewrite 0ms   [no imports] src\store\mutations.ts +25ms
  vite:transform 14ms  /src/store/mutations.ts +4ms
  vite:time 27ms  /src/store/mutations.ts +7ms
  vite:load 1ms   [fs] /src/api.ts +25ms
  vite:resolve 0ms   axios -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/node_modules/.vite/axios.js?v=8ff8af02&es-interop +26ms    
  vite:resolve 1ms   /node_modules/.vite/axios.js?v=8ff8af02&es-interop -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/node_modules/.vite/axios.js?v=8ff8af02&es-interop +1ms
  vite:resolve 1ms   ./util -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/util.ts +10ms
  vite:resolve 0ms   /src/util.ts -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/util.ts +0ms
  vite:resolve 1ms   /node_modules/.vite/axios.js?v=8ff8af02 -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/node_modules/.vite/axios.js?v=8ff8af02 +2ms
  vite:transform 21ms  /src/api.ts +33ms
  vite:time 28ms  /src/api.ts +32ms
  vite:load 0ms   [fs] /src/util.ts +33ms
  vite:rewrite 1ms   [no imports] src\util.ts +53ms
  vite:transform 8ms   /src/util.ts +19ms
  vite:time 11ms  /src/util.ts +17ms
  vite:load 2ms   [fs] /src/App.vue +51ms
  vite:resolve 1ms   /Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/components/AppBar.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/components/AppBar.vue +154ms
  vite:resolve 2ms   @/components/AppBar.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/components/AppBar.vue +1ms
  vite:resolve 0ms   /src/components/AppBar.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/components/AppBar.vue +1ms        
  vite:resolve 5ms   /Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/components/AppFooter.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/components/AppFooter.vue +6ms
  vite:resolve 5ms   @/components/AppFooter.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/components/AppFooter.vue +0ms     
  vite:resolve 0ms   /src/components/AppFooter.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/components/AppFooter.vue +1ms  
  vite:resolve 1ms   /src/App.vue?vue&type=template&lang.js -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/App.vue?vue&type=template&lang.js +2ms
  vite:resolve 0ms   /src/App.vue?vue&type=style&index=0&lang.scss -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/App.vue?vue&type=style&index=0&lang.scss +2ms
  vite:hmr [self-accepts] src\App.vue +0ms
  vite:transform 113ms /src/App.vue +156ms
  vite:load 50ms  [fs] /src/views/Command.vue +115ms
  vite:resolve 6ms   /Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/api -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/api.ts +152ms
  vite:resolve 7ms   @/api -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/api.ts +1ms
  vite:resolve 0ms   ../components/QuickCard.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/components/QuickCard.vue +2ms    
  vite:resolve 0ms   /src/components/QuickCard.vue -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/components/QuickCard.vue +1ms  
  vite:resolve 0ms   /src/views/Command.vue?vue&type=template&lang.js -> C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/views/Command.vue?vue&type=template&lang.js +6ms
  vite:hmr [self-accepts] src\views\Command.vue +160ms
  vite:transform 157ms /src/views/Command.vue +159ms
  vite:time 285ms /src/App.vue +321ms
  vite:time 226ms /src/views/Command.vue +6ms
  vite:load 0ms   [plugin] /src/App.vue?vue&type=template&lang.js +236ms
  vite:hmr [self-accepts] src\App.vue?vue&type=template&lang.js +241ms
  vite:transform 171ms /src/App.vue?vue&type=template&lang.js +253ms
  vite:time 178ms /src/App.vue?vue&type=template&lang.js +242ms
  vite:load 0ms   [plugin] /src/App.vue?vue&type=style&index=0&lang.scss +179ms
  vite:load 0ms   [plugin] /src/views/Command.vue?vue&type=template&lang.js +11ms
  vite:hmr [self-accepts] src\views\Command.vue?vue&type=template&lang.js +194ms
  vite:transform 167ms /src/views/Command.vue?vue&type=template&lang.js +183ms
  vite:time 172ms /src/views/Command.vue?vue&type=template&lang.js +182ms
11:14:59 PM [vite] Internal server error: Preprocessor dependency "sass" not found. Did you install it?
  Plugin: vite:css
  File: C:/Users/bgonz/Source/repos/Sheep.CommandAndControl/src/ListeningPostWebUi/src/App.vue?vue&type=style&index=0&lang.scss
      at loadPreprocessor (C:\Users\bgonz\Source\repos\Sheep.CommandAndControl\src\ListeningPostWebUi\.yarn\cache\vite-npm-2.4.0-516cefe241-ca7336ae31.zip\node_modules\vite\dist\node\chunks\dep-fc2895ac.js:28144:15)
      at scss (C:\Users\bgonz\Source\repos\Sheep.CommandAndControl\src\ListeningPostWebUi\.yarn\cache\vite-npm-2.4.0-516cefe241-ca7336ae31.zip\node_modules\vite\dist\node\chunks\dep-fc2895ac.js:28149:20)
      at compileCSS (C:\Users\bgonz\Source\repos\Sheep.CommandAndControl\src\ListeningPostWebUi\.yarn\cache\vite-npm-2.4.0-516cefe241-ca7336ae31.zip\node_modules\vite\dist\node\chunks\dep-fc2895ac.js:27893:40)
      at async TransformContext.transform (C:\Users\bgonz\Source\repos\Sheep.CommandAndControl\src\ListeningPostWebUi\.yarn\cache\vite-npm-2.4.0-516cefe241-ca7336ae31.zip\node_modules\vite\dist\node\chunks\dep-fc2895ac.js:27563:50)
      at async Object.transform (C:\Users\bgonz\Source\repos\Sheep.CommandAndControl\src\ListeningPostWebUi\.yarn\cache\vite-npm-2.4.0-516cefe241-ca7336ae31.zip\node_modules\vite\dist\node\chunks\dep-fc2895ac.js:50336:30)
      at async transformRequest (C:\Users\bgonz\Source\repos\Sheep.CommandAndControl\src\ListeningPostWebUi\.yarn\cache\vite-npm-2.4.0-516cefe241-ca7336ae31.zip\node_modules\vite\dist\node\chunks\dep-fc2895ac.js:65912:29)
      at async viteTransformMiddleware (C:\Users\bgonz\Source\repos\Sheep.CommandAndControl\src\ListeningPostWebUi\.yarn\cache\vite-npm-2.4.0-516cefe241-ca7336ae31.zip\node_modules\vite\dist\node\chunks\dep-fc2895ac.js:66050:32)
  vite:time 368ms /src/App.vue?vue&type=style&index=0&lang.scss +187ms

Validations

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

I investigated, I think this is an error that happens specifically when using Yarn PnP. When using Yarn v1, the error disappears.

Here is a screenshot of the underlying error, which was hidden behind this global catch: Screen Shot 2021-07-08 at 5 00 42 pm

I’m not familiar with Yarn PnP, but I found that the error didn’t simply go away when reverting my PR. I think the issue probably lies somewhere else. Is the error message indicative of an actual configuration error?

Would love someone with more knowledge of Yarn PnP to take over here 😃

@fwouts would you check that this isnt related to https://github.com/vitejs/vite/pull/3988?