vibeman1987
vibeman1987
SSolidJS
Created by Julio Barros on 11/2/2023 in #support
Running a script in a solid start project
if even that doesn't work,
ts-node --esm src/foo.ts
ts-node --esm src/foo.ts
5 replies
SSolidJS
Created by Julio Barros on 11/2/2023 in #support
Running a script in a solid start project
you can also add esModuleInterop to your tsconfig.json:
{
"compilerOptions": {
"esModuleInterop": true,
}
}
{
"compilerOptions": {
"esModuleInterop": true,
}
}
5 replies
SSolidJS
Created by Julio Barros on 11/2/2023 in #support
Running a script in a solid start project
Can you send over your package.json?
5 replies
SSolidJS
Created by Revxrsal on 9/18/2023 in #support
vite bundling unused components from external libraries (SSR)
i think this is just a fast refresh, no?
27 replies
SSolidJS
Created by Silverdagger on 8/31/2023 in #support
Missing Http method returns 200 status code on api route
weird that it's in the docs, as if it's implemented
20 replies
SSolidJS
Created by Mathieu on 8/31/2023 in #support
How to initialize a store from another store?
let store1_noProxy = Object.assign(store1)
let store1_noProxy = Object.assign(store1)
9 replies
SSolidJS
Created by chris on 9/1/2023 in #support
Need to pass a function as a dependency to the solid js web component.
@chris_38815 so you just want a function to be execute when the component is loaded?
4 replies
SSolidJS
Created by chris on 9/1/2023 in #support
Need to pass a function as a dependency to the solid js web component.
const initialize = () => {
const myWebcomponent = document.querySelector('my-webcomponent');
if (!myWebcomponent || !myWebcomponent.componentOnReady) return;
console.log(myWebcomponent);
myWebcomponent?.componentOnReady().then(() => {
myWebcomponent.myPublicMethod({...deps, depFunc: () => // do smth});
})};
document.addEventListener('DOMContentLoaded', initialize);
const initialize = () => {
const myWebcomponent = document.querySelector('my-webcomponent');
if (!myWebcomponent || !myWebcomponent.componentOnReady) return;
console.log(myWebcomponent);
myWebcomponent?.componentOnReady().then(() => {
myWebcomponent.myPublicMethod({...deps, depFunc: () => // do smth});
})};
document.addEventListener('DOMContentLoaded', initialize);
4 replies
SSolidJS
Created by Grahf on 8/31/2023 in #support
For loop in route breaks when form in another component is submitted
yup
12 replies
SSolidJS
Created by Silverdagger on 8/31/2023 in #support
Missing Http method returns 200 status code on api route
Turns out it's not even in the code \o/
20 replies
SSolidJS
Created by Silverdagger on 8/31/2023 in #support
Missing Http method returns 200 status code on api route
20 replies
SSolidJS
Created by Silverdagger on 8/31/2023 in #support
Missing Http method returns 200 status code on api route
Have you wrapped anything in your Index file?
20 replies
SSolidJS
Created by Silverdagger on 8/31/2023 in #support
Missing Http method returns 200 status code on api route
If a handler is not defined for a given HTTP method, SolidStart will return a 405 Method Not Allowed response.
If a handler is not defined for a given HTTP method, SolidStart will return a 405 Method Not Allowed response.
20 replies
SSolidJS
Created by Silverdagger on 8/31/2023 in #support
Missing Http method returns 200 status code on api route
in what folder are your endpoints?
20 replies
SSolidJS
Created by Silverdagger on 8/31/2023 in #support
Missing Http method returns 200 status code on api route
@silverdagger
20 replies
SSolidJS
Created by Silverdagger on 8/31/2023 in #support
Missing Http method returns 200 status code on api route
wait
20 replies
SSolidJS
Created by Silverdagger on 8/31/2023 in #support
Missing Http method returns 200 status code on api route
I haven't found anything in the docs that gives an alternative @silverdagger
20 replies
SSolidJS
Created by Silverdagger on 8/31/2023 in #support
Missing Http method returns 200 status code on api route
if you want something custom:
export const POST = ()=>{return new Response("Error: POST not supported", {status : 405})}
export const POST = ()=>{return new Response("Error: POST not supported", {status : 405})}
20 replies
SSolidJS
Created by Silverdagger on 8/31/2023 in #support
Missing Http method returns 200 status code on api route
I gotchu yeah lemme check
20 replies
SSolidJS
Created by Silverdagger on 8/31/2023 in #support
Missing Http method returns 200 status code on api route
nevermind
20 replies