Comments (3)
- this is a sveltekit issue and not a svelte issue
- when providing a reproduction try to create something runnable, it's easier for the maintainers this way...i created one for you
- if you take a look at the output of the build (the files should already be open when you open the sveltelab link) you can see how you +page.ts is transformed and where the error originates. However this is most likely an issue with vite and how it transforms the dynamic import. So i would actually move this issue in vite. I think parens kinda messes with the vite transform.
from svelte.
Shouldn't glob import be used in such cases?
from svelte.
Shouldn't glob import be used in such cases?
It's also an option but if you know that you just want to import a single file in an upper folder why bother with glob? Also if you remove parens it works so imho it's a bug in vite.
from svelte.
Related Issues (20)
- Parametric compile options HOT 5
- My +page.server.ts load doesn't acknowledge the types but the +layout.server.ts does.
- HMR breaks with conditional rendering within {#if} blocks HOT 2
- Production build failure of [email protected] -> [email protected] HOT 5
- Svelte 5: next 182 breaks Threlte apps HOT 2
- Svelte 5: Regression since 5.0.0-next.171 HOT 4
- Rerendering bug in table with sticky first column HOT 2
- Svelte 5: Usage of `$effect.active` in `.svelte.js` files gives incorrect error in runtime HOT 2
- Svelte 5: Rune to Store and vice versa HOT 3
- Svelte 5: decide on behaviour of `$state.frozen` HOT 20
- Reactivity regression since 5.0.0-next.177 HOT 6
- Error on mounting to detached element with `css: injected` HOT 2
- Animation is not applied inside nested global css selector HOT 5
- svelte 5 : structural clone failed HOT 2
- `list` is not reactive, but `list.length` is HOT 11
- Svelte 5: Portal'd content and multiple elements in same conditional HOT 3
- `SvelteDate.now()` as a live updating source HOT 6
- `<svelte:component>` wrong error message on component creation HOT 2
- Children duplication of list items rendered within components after v `5.0.0-next.179`
- Svelte 5: cannot change nested objects if not binded HOT 25
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte.