Closed qlaffont closed 7 months ago
Hi, I am using this plugin and I have a log who is emitted on vite. This issue is not fatal, I can access to my assets but i prefer to share it to fix it :
GET http://localhost:3100/fonts/Steradian/steradian-rg-webfont.woff2 An unhandled error occured: Error: Cannot set headers after they are sent to the client at new NodeError (node:internal/errors:405:5) at ServerResponse.setHeader (node:_http_outgoing:648:11) at handleNodeResponse (file:///home/quentin/Documents/dev/madeformed/starter-web/node_modules/.pnpm/solid-start@0.3.9_@solidjs+meta@0.29.1_@solidjs+router@0.8.3_solid-js@1.8.5_solid-start-node@0.3.9_vite@4.5.0/node_modules/solid-start/node/fetch.js:171:16) at startHandler (file:///home/quentin/Documents/dev/madeformed/starter-web/node_modules/.pnpm/solid-start@0.3.9_@solidjs+meta@0.29.1_@solidjs+router@0.8.3_solid-js@1.8.5_solid-start-node@0.3.9_vite@4.5.0/node_modules/solid-start/dev/server.js:140:7) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Regards
Can you explain more clearly what the problem is?
The problem is when i try to access some assets : The assets is correctfully downloaded BUT an error is display on vite console " Error: Cannot set headers after they are sent to the client"
any update on this ?
any update on this ?
I'm still present. But right now I'm overloaded with personal projects. Please give me a little more time, next week at the latest, I will solve this problem for you!!
i don't know exactly, is the problem with SSR?
Yes i have ssr enabled
Yes i have ssr enabled
I see you are using solid-start!! Maybe I need time to use my plugin with this library to find the exact cause
The problem is when i try to access some assets : The assets is correctfully downloaded BUT an error is display on vite console " Error: Cannot set headers after they are sent to the client"
It would be great if you could provide a repo or code snippet where you encountered the problem!!
Yes no problem i will create a repro today ! I keep you in touch !
Here the repro : https://github.com/qlaffont/solid-start-project
I take an example with favicon.ico
Here the repro : https://github.com/qlaffont/solid-start-project
I take an example with favicon.ico
tks so much!!
Hi, I am using this plugin and I have a log who is emitted on vite. This issue is not fatal, I can access to my assets but i prefer to share it to fix it :
GET http://localhost:3100/fonts/Steradian/steradian-rg-webfont.woff2 An unhandled error occured: Error: Cannot set headers after they are sent to the client at new NodeError (node:internal/errors:405:5) at ServerResponse.setHeader (node:_http_outgoing:648:11) at handleNodeResponse (file:///home/quentin/Documents/dev/madeformed/starter-web/node_modules/.pnpm/solid-start@0.3.9_@solidjs+meta@0.29.1_@solidjs+router@0.8.3_solid-js@1.8.5_solid-start-node@0.3.9_vite@4.5.0/node_modules/solid-start/node/fetch.js:171:16) at startHandler (file:///home/quentin/Documents/dev/madeformed/starter-web/node_modules/.pnpm/solid-start@0.3.9_@solidjs+meta@0.29.1_@solidjs+router@0.8.3_solid-js@1.8.5_solid-start-node@0.3.9_vite@4.5.0/node_modules/solid-start/dev/server.js:140:7) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Regards
Hi!!! I have released version 1.2.7, you can try again!!
I can confirm it works ! I close the issue !
I can confirm it works ! I close the issue !
i released version 1.2.8
. With ssr i vite.congfig.ts
DynamicPublicDirectory(["../../../shared-assets"],{
ssr:true
})]
mimeTypes is required when i specify ssr is it normal ? @nguyenbatranvan
mimeTypes is required when i specify ssr is it normal ? @nguyenbatranvan
what!!! mimeTypes not required!!
i seen!! What is ts version?
5.2.2
5.2.2
yess!! Maybe they should all be optional =))
5.2.2
yess!! Maybe they should all be optional =))
fixed v 1.2.9
Hi, I am using this plugin and I have a log who is emitted on vite. This issue is not fatal, I can access to my assets but i prefer to share it to fix it :
Regards