You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have package.json, package-lock.json, and node_modules to the root - does not work.
I am likely doing something wrong and this is perhaps intended, in that case, what would be the "standard" structure that resembles what I inded?
Environment:
$ npm --version
9.5.1
If relevant, MacOS.
Thank you!
The text was updated successfully, but these errors were encountered:
bphenriques
changed the title
Vite can't find resources when the `node_o a non-standard "web resources" directory
Vite can't find resources when the "web resources" directory lives in a different place
Oct 15, 2023
Hello!
Trying to tidy up a project so that the usual web resources live within the same subdirectory
web
:I have updated
vite.config.js
accordingly to point to the parent directory but it then fails to find resources installednode_modules
:How to reproduce
Example repo that attempts to reproduce: https://github.com/bphenriques/issue-rd-scalajs-sbt-vite-laminar-chartjs-example/tree/scalajs-vite-end-state (branch
scalajs-vite-end-state
).It is built on top of the usual scalajs-vite tutorial: https://www.scala-js.org/doc/tutorial/scalajs-vite.html
web
(commit):Variations:
package.json
,package-lock.json
, andnode_modules
to the root - does not work.I am likely doing something wrong and this is perhaps intended, in that case, what would be the "standard" structure that resembles what I inded?
Environment:
If relevant, MacOS.
Thank you!
The text was updated successfully, but these errors were encountered: