Matt Jennings

Results 32 comments of Matt Jennings

I've made a component template that supports the `svelte` entry for both javascript and typescript consumers: https://github.com/mattjennings/svelte-typescript-component-template It does this by preprocessing the .svelte components and using that for the...

You can workaround this by adding the following to your vite config (or creating a vite.config.js if you don't have one): ```js // vite.config.js export default { /* other config...

downgrading @apollo/react-hooks and @apollo/react-ssr to 3.0.0 fixed it for me. Using [email protected] and [email protected].

For anyone running into the issue for the meantime, I was able to get .js extensions added by installing [ts-patch](https://github.com/nonara/ts-patch) and using [typescript-transform-extensions](https://github.com/anthonynichols/typescript-transform-extensions#readme). Obviously not the ideal solution, but it...

The reason `.js` imports won't work within the kit project itself is because that `.js` file doesn't exist yet (it will only be there post-compilation in the output folder). So...

Here's a repo demonstrating the problem: https://github.com/mattjennings/svelte-kit-package-extensions-bug

> I'd love to help find a solution, as this basically prevents to build a simple package when using typescript with the package command :) > > Or are there...

I was running into this error because I wasn't returning `describe()` inside `specs()`: ```javascript // causes "Cannot read property 'wrongResults' of undefined" error specs(() => { describe('some test', () =>...

Unfortunately slots are not supported as there's no way to express slot content in JS syntax (that I know of, at least). Only props can be passed in with `openModal`