-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path includes a dot (.) character #4556
Path includes a dot (.) character #4556
Comments
+1 In my case, I need to parse a JWT from the URL which is part of the path. For example:
In the meantime, I'll try to convince my colleagues to use a query string instead 😄 |
Duplicate of #4344 |
First, I apologize that I mistakenly marked it as a duplicate at the beginning. I tested this issue and only the Because vite resolves the locally installed vite/packages/vite/src/node/plugins/resolve.ts Lines 491 to 505 in 0aaca23
local dependency for the and the local dependencies installed by this causes the later, when entering the vite/packages/vite/src/node/server/pluginContainer.ts Lines 468 to 471 in 0aaca23
the path becomes: root/ComponentsApp/src/components/Button/styles.css.ts
this leads to later loading the style with the I will submit a |
@ygj6 thanks for your quick response and analysis of this problem. I have not tried using yarn in this case yet, but I think it might be a temporary solution until your changes in vanila-extract are published. |
PR has been merged and |
Checkout vite plugin https://github.com/ivesia/vite-plugin-rewrite-all |
Describe the bug
When trying to load styles from a file from another library using @vanilla-extract/vite-plugin, an error occurs on the dev server:
vite:spa-fallback Not rewriting GET /@id/ComponentsApp/src/components/Button/styles.css.ts.vanilla.css?hash=0b6a2903c4458e87f00567205ad0a3b6 because the path includes a dot (.) character.
This only occurs if you install the library from the local repository.
At first I thought that the problem might be in the plugin itself, but after debugging I realized that the following path is passed to the @vanilla-extract/vite-plugin for exporting styles:
These two points cause this error
MainApp/../ComponentsApp/src/components/Button/styles.css.ts.vanilla.css?source=LnN0eWxlc19fN3ltc2N6MCB7CiAgY29sb3I6ICNmZjAwMDA7CiAgZm9udC1zaXplOiAyMHB4Owp9
Reproduction
git clone [email protected]:maratnasyrov/ComponentsApp.git
git clone [email protected]:maratnasyrov/MainApp.git
cd MainApp
npm install -S ../ComponentsApp
npm run dev
Open localhost:3000 in browser
Also, this error can be seen in the console
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: