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
Hi I launched the yarn build command, it generates the dist folder but when I upload on the server nothing happens.
It only works in local if I run npx http-server dist as the guide here explains.
I discovered two things:
All static assets in index.html files appears like so
Obviously, these manual changes must be made every time you build the app resulting in a tedious job.
The file paths are relative file paths, in this case the build is expecting to find the files at the root of your website.
For example if your website is https://example.com, the browser will look for the files at https://example.com/js/chunk-vendors.4e5716f4.js and https://example.com/assets/tree.json.
You can fix this by deploying your files to the expected path.
Version: 10.6.0
Hi I launched the
yarn build
command, it generates thedist
folder but when I upload on the server nothing happens.It only works in local if I run
npx http-server dist
as the guide here explains.I discovered two things:
index.html
files appears like sowithout the double quote and mistakenly pointing to the file.
It should appear like so instead
/js/app.js
file when fetchingtree.json
fileit should be like so
Obviously, these manual changes must be made every time you build the app resulting in a tedious job.
What am I wrong?
Thanks in advice
The text was updated successfully, but these errors were encountered: