qwik: [π] Path Resolution Issue: '~/' Prefix Not Resolving Modules Properly
Which component is affected?
Qwik Runtime
Describe the bug
I am running npm start for the first time, What i expect is the first renfer of Qwik. What actually happening is
Reproduction
https://github.com/Dv-Joan/qwik-issue-repo.git
Steps to reproduce
Create the Basic app template followed by npm install and finally npm start
System Info
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
Memory: 2.11 GB / 7.85 GB
Binaries:
Node: 18.17.1 - C:\Program Files\nodejs\node.EXE
npm: 9.8.1 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.19041.1266.0), Chromium (115.0.1901.203)
Internet Explorer: 11.0.19041.1566
Additional Information
Files are there
This is my tsconfig.json
and i tried this modification
but it doesnβt work. I have to use this type of import
to work but on all files to make it work
About this issue
- Original URL
- State: open
- Created 10 months ago
- Reactions: 1
- Comments: 24 (5 by maintainers)
I will look into this issue. First, need to identify if the issue is windows only.
@mhevery the problem is easily reproducible on Windows 11 in
powershell
. The path resolution is superceded by the $HOME variable in Windows 11Here is the detailed error log on Windows 11 Powershell
The application runs fine on WSL2
@gioboa
I can put in the steps to reproduce the issue, and the issue is not only with Qwik but also with other frameworks that create project files like Astro or Svelte
%USER_PROFILE%\Sources
toD:\Sources
pnpm create Qwik
You will see problems like files not found, CSS not loaded, etcβ¦