question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working on Windows(OS)

See original GitHub issue

the issue was mentioned on discord, but i’ll rewrite it here so that other can see it, it’s not working on Windows(OS), the imports path are wrong, hope it could be fixed soon ^^

[vite] Internal server error: Failed to resolve import "/@fsC:/Users/UserName/Desktop/projects/javascript/test-storybook/.storybook/preview.js" from "..\..\..\..\..\..\virtual:\@storybook\builder-vite\vite-app.js". Does the file exist?
  Plugin: vite:import-analysis
  File: /virtual:/@storybook/builder-vite/vite-app.js
  8  |      import { addDecorator, addParameters, addLoader, addArgTypesEnhancer } from '@storybook/client-api';
  9  |      import { logger } from '@storybook/client-logger';
  10 |      import * as config_0 from '/@fsC:/Users/UserName/Desktop/projects/javascript/test-storybook/.storybook/preview.js'
     |                                 ^
  11 |  import * as config_1 from '/@fsC:/Users/UserName/Desktop/projects/javascript/test-storybook/node_modules/@storybook/addon-docs/dist/esm/frameworks/common/config.js'
  12 |  import * as config_2 from '/@fsC:/Users/UserName/Desktop/projects/javascript/test-storybook/node_modules/@storybook/addon-docs/dist/esm/frameworks/vue3/config.js'
      at formatError (C:\Users\UserName\Desktop\projects\javascript\test-storybook\node_modules\vite\dist\node\chunks\dep-5c642f9e.js:43549:46)
      at TransformContext.error (C:\Users\UserName\Desktop\projects\javascript\test-storybook\node_modules\vite\dist\node\chunks\dep-5c642f9e.js:43545:19)
      at normalizeUrl (C:\Users\UserName\Desktop\projects\javascript\test-storybook\node_modules\vite\dist\node\chunks\dep-5c642f9e.js:45157:26)
      at async TransformContext.transform (C:\Users\UserName\Desktop\projects\javascript\test-storybook\node_modules\vite\dist\node\chunks\dep-5c642f9e.js:45285:57)
      at async Object.transform (C:\Users\UserName\Desktop\projects\javascript\test-storybook\node_modules\vite\dist\node\chunks\dep-5c642f9e.js:43747:30)
      at async transformRequest (C:\Users\UserName\Desktop\projects\javascript\test-storybook\node_modules\vite\dist\node\chunks\dep-5c642f9e.js:59401:29)
      at async C:\Users\UserName\Desktop\projects\javascript\test-storybook\node_modules\vite\dist\node\chunks\dep-5c642f9e.js:59538:32
15:18:05 [vite] Internal server error: Failed to resolve import "/@fsC:/Users/UserName/Desktop/projects/javascript/test-storybook/.storybook/preview.js" from "..\..\..\..\..\..\virtual:\@storybook\builder-vite\vite-app.js". Does the file exist?
  Plugin: vite:import-analysis
  File: /virtual:/@storybook/builder-vite/vite-app.js
  8  |      import { addDecorator, addParameters, addLoader, addArgTypesEnhancer } from '@storybook/client-api';
  9  |      import { logger } from '@storybook/client-logger';
  10 |      import * as config_0 from '/@fsC:/Users/UserName/Desktop/projects/javascript/test-storybook/.storybook/preview.js'
     |                                 ^
  11 |  import * as config_1 from '/@fsC:/Users/UserName/Desktop/projects/javascript/test-storybook/node_modules/@storybook/addon-docs/dist/esm/frameworks/common/config.js'
  12 |  import * as config_2 from '/@fsC:/Users/UserName/Desktop/projects/javascript/test-storybook/node_modules/@storybook/addon-docs/dist/esm/frameworks/vue3/config.js'
      at formatError (C:\Users\UserName\Desktop\projects\javascript\test-storybook\node_modules\vite\dist\node\chunks\dep-5c642f9e.js:43549:46)
      at TransformContext.error (C:\Users\UserName\Desktop\projects\javascript\test-storybook\node_modules\vite\dist\node\chunks\dep-5c642f9e.js:43545:19)
      at normalizeUrl (C:\Users\UserName\Desktop\projects\javascript\test-storybook\node_modules\vite\dist\node\chunks\dep-5c642f9e.js:45157:26)
      at async TransformContext.transform (C:\Users\UserName\Desktop\projects\javascript\test-storybook\node_modules\vite\dist\node\chunks\dep-5c642f9e.js:45285:57)
      at async Object.transform (C:\Users\UserName\Desktop\projects\javascript\test-storybook\node_modules\vite\dist\node\chunks\dep-5c642f9e.js:43747:30)
      at async transformRequest (C:\Users\UserName\Desktop\projects\javascript\test-storybook\node_modules\vite\dist\node\chunks\dep-5c642f9e.js:59401:29)
      at async C:\Users\UserName\Desktop\projects\javascript\test-storybook\node_modules\vite\dist\node\chunks\dep-5c642f9e.js:59538:32 (x2)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12

github_iconTop GitHub Comments

2reactions
Zenthaecommented, Apr 25, 2021

it’s working 👌

0reactions
eirslettcommented, Apr 25, 2021

@Zenthae Try using version 0.0.6 of the plugin (I just published it now). I added the extra slash. Does it work?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft Windows Operating System has stopped working
Microsoft Windows Operating System has stopped working · 1. Click Start and then type cmd in the Start Search box. · 2. In...
Read more >
17 most common Windows 10 problems and how to fix them
1. Can't upgrade from Windows 7 or Windows 8 · 2. Can't upgrade to the latest Windows 10 version · 3. You have...
Read more >
What You Should Do If Windows Fails to Start
1. Restart the PC, and as soon as Windows 10 tries to load; remove the power supply or press and hold the Power...
Read more >
What should I do if my computer does not boot into Windows?
Newly-installed hardware · Out of date or corrupt hardware drivers · Corrupt system files · Bad sectors or other hard drive issues ·...
Read more >
[Solved] Windows 10 Not Responding | Quickly & Easily
Restart your computer · Troubleshoot your computer · Update available drivers · Run System File Checker · Run a virus scan · Perform...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found