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
Bug: dev server returns 404 for /virtual:rakkasjs:start-client.js
#32
Comments
Thanks for reporting @tkamenoko. I believe I diagnosed and solved this issue. But, unfortunately, I don't have a Windows machine handy. Would you be so kind to try version |
|
IMO, I injected // myproject\node_modules\@rakkasjs\cli\node_modules\vite\dist\node\chunks\dep-5496817b.js
// vite-only server context
const { moduleGraph } = server;
// since we are already in the transform phase of the importer, it must
// have been loaded so its entry is guaranteed in the module graph.
console.log(importer); // INJECTED LOGGING
const importerModule = moduleGraph.getModuleById(importer);
const importedUrls = new Set(); and the result of terminal output:
|
In any case, it seems like a different problem. The log shows that the entry resolves fine. Could you you delete the directory |
@cyco130 Sorry for my late response. I removed It may be caused by pre bundling. I use linaria for styling. but I forgot to append I made a sample project at https://github.com/tkamenoko/rakkas-linaria . Feel free to use this repo for reproducing the issue. |
Great to hear! I was trying to remember where I remember that exact message and now I do, it was caused by styled-components when it's not in |
Local development server returns 404 for
/virtual:rakkasjs:start-client.js
, and that causes blank stylesheets. Note that runingrakkas build
works as expected.Env:
The text was updated successfully, but these errors were encountered: