-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Trouble on build with vite and sveltejs/kit #9045
Comments
Please provide a slimmed down version of your reproducible by deleting as much code as possible so we get a proper minimum reproducible. Right now there are many routes and it's hard to diagnose the issue that way. |
https://stackblitz.com/edit/nodemon-tsz9ee?file=README.md It's seems like problem of main2 router. |
Additional:
|
It's the |
Ok this is actually a typo. It's Given how hard it was to debug this, I'm wondering if error handling should be better here. |
Thanks for find my fault and make error handling. |
After struggling with a similar error for a few days here, my issue was that I had a src tag in an element pointing to an image that didn't exist. Hope this helps someone. |
Had same issue. Had moved (and I might be wrong here) all images from "static" folder to inside lib use to a number of references I had read that it is better to have picures inside lib so they get a key on render. However I had also moved the favicon.png as well. Readin (above) I put it back and it worked so thanks for the clue. And yes the errors thrown did not point to anything at all as others here will note. So hope it helps the next person. |
Had same issue. I tried deleting folders partially and in the end I found: it does not works import {Client} from 'pg';
const client = new Client({
user: "postgres", host: "127.0.0.1", database: "blogs", password: "secret", port: "5432"
});
connectToDatabase(); it works. import {Client} from 'pg';
const client = null;
connectToDatabase(); Of course null client is not proper but I meant I can build when it is set to null. update: import pkg from 'pg';
const { Client } = pkg; it works completely. I hope it helps the next person. |
Describe the bug
When I execute
npm run build
, I got a trouble about compile like that :Reproduction
https://stackblitz.com/edit/nodemon-qgnnoj?file=README.md
Logs
System Info
Severity
serious, but I can work around it
Additional Information
No response
The text was updated successfully, but these errors were encountered: