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.

Windows 10 Platform Error while handling server request. This path could not be converted to a browser path.

See original GitHub issue

Microsoft Windows [Version 10.0.19041.985] © Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd c:\xampp\htdocs\svgtest\

c:\xampp\htdocs\svgtest>npm i npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I’ll try to do my best with it!

core-js@2.6.11 postinstall c:\xampp\htdocs\svgtest\node_modules@babel\polyfill\node_modules\core-js node -e “try{require(‘./postinstall’)}catch(e){}”

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

core-js@2.6.11 postinstall c:\xampp\htdocs\svgtest\node_modules\babel-register\node_modules\core-js node -e “try{require(‘./postinstall’)}catch(e){}”

core-js@2.6.11 postinstall c:\xampp\htdocs\svgtest\node_modules\babel-runtime\node_modules\core-js node -e “try{require(‘./postinstall’)}catch(e){}”

core-js@3.12.1 postinstall c:\xampp\htdocs\svgtest\node_modules\core-js node -e “try{require(‘./postinstall’)}catch(e){}”

core-js-pure@3.9.0 postinstall c:\xampp\htdocs\svgtest\node_modules\core-js-pure node -e “try{require(‘./postinstall’)}catch(e){}”

core-js-bundle@3.12.1 postinstall c:\xampp\htdocs\svgtest\node_modules\core-js-bundle node -e “try{require(‘./postinstall’)}catch(e){}”

cypress@7.3.0 postinstall c:\xampp\htdocs\svgtest\node_modules\cypress node index.js --exec install

Cypress 7.3.0 is installed in C:\Users\user\AppData\Local\Cypress\Cache\7.3.0

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\unified-args\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“ia32”}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\rollup\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“ia32”}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“ia32”}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\mocha\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“ia32”}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules@web\dev-server-core\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“ia32”})

added 2247 packages from 935 contributors and audited 2263 packages in 61.641s

170 packages are looking for funding run npm fund for details

found 39 vulnerabilities (11 low, 15 moderate, 13 high) run npm audit fix to fix them, or npm audit for details

c:\xampp\htdocs\svgtest>npm run start

svgedit@7.0.0-preview start c:\xampp\htdocs\svgtest web-dev-server --node-resolve

Web Dev Server started…

Root dir: c:\xampp\htdocs\svgtest Local: http://localhost:8000/ Network: http://192.168.56.1:8000/

**Error while handling server request. PluginError:

Resolved ./jquery.min.js to C:\xampp\htdocs\svgtest\src\editor\jquery.min.js.

This path could not be converted to a browser path. Please file an issue with a reproduction.** at Object.resolveImport (c:\xampp\htdocs\svgtest\node_modules@web\dev-server-rollup\dist\rollupAdapter.js:161:35) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async Object.resolve (c:\xampp\htdocs\svgtest\node_modules@web\dev-server-rollup\dist\createRollupPluginContextAdapter.js:52:36) at async Object.resolveImport (c:\xampp\htdocs\svgtest\node_modules@web\dev-server-rollup\dist\rollupAdapter.js💯30) at async resolveImport (c:\xampp\htdocs\svgtest\node_modules@web\dev-server-core\dist\plugins\transformModuleImportsPlugin.js:127:30) at async transformImport (c:\xampp\htdocs\svgtest\node_modules@web\dev-server-core\dist\plugins\transformModuleImportsPlugin.js:140:37) at async maybeResolveImport (c:\xampp\htdocs\svgtest\node_modules@web\dev-server-core\dist\plugins\transformModuleImportsPlugin.js:68:41) at async transformImports (c:\xampp\htdocs\svgtest\node_modules@web\dev-server-core\dist\plugins\transformModuleImportsPlugin.js:94:36) at async Object.transform (c:\xampp\htdocs\svgtest\node_modules@web\dev-server-core\dist\plugins\transformModuleImportsPlugin.js:171:49) at async c:\xampp\htdocs\svgtest\node_modules@web\dev-server-core\dist\middleware\pluginTransformMiddleware.js:44:32 Terminate batch job (Y/N)? n

c:\xampp\htdocs\svgtest>node -v v14.17.0

c:\xampp\htdocs\svgtest>npm -v 6.14.13

GET http://localhost:8000/src/editor/index.js net::ERR_ABORTED 500 (Internal Server Error)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
ValiantHalibutcommented, Jan 31, 2022

I was having the same issue, turns out that it was present in web-dev-server - see here: https://github.com/modernweb-dev/web/issues/1483

Short version - Windows paths are not case sensitive but the resolved paths in web-dev-server are, so when the resolver attempts to provide absolute paths to the node modules in order to generate browser paths it is unable to find the referenced imports.

I came across this when running web-dev-server from Powershell after navigating to a project folder using terminal commands that had inconsistent casing. So if my project folder lived here: C:\Dev\Projects\MyProject and I navigated to that folder by typing cd c:\dev\projects\myproject and then attempted to run web-dev-server, I would get that error. Resolve it by simply using the Set-Location cmdlet with a case sensitive path: cd C:\Dev\Projects\MyProject

0reactions
jfhenoncommented, Feb 1, 2022

@Kreminskyi would you let us know if this fixes your issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Windows cannot access the specified device, path, or file ...
Troubleshooting error message: Windows cannot access the specified device, path, or file. You may not have the appropriate permission to access the item....
Read more >
cordova-plugin-file
Each URL is in the form file:///path/to/spot/, and can be converted to a DirectoryEntry using window.resolveLocalFileSystemURL() . cordova.file.
Read more >
Troubleshooting AWS IoT Greengrass V2
One common issue is where Java isn't available on the PATH environment variable (Linux) or PATH system variable (Windows). Unable to set up...
Read more >
9 Installation of the JDK and the JRE on Microsoft Windows ...
Before installing the JDK or the JRE on your 64-bit Windows platform, ... You should only have one bin directory for a JDK...
Read more >
Troubleshooting — Anaconda documentation
Cannot get conda to run after installing; Recovering your Anaconda installation ... requests admin privileges on Windows; Windows permission errors when ...
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