Comments (1)
This issue is due to vite didn't recognize file under nested folder. Solved by dynamically import svelte component using modules helper from vite
This is current entry-client.ts
let View = null;
const modules = import.meta.glob("../../../app/resources/view/**/*.svelte");
Object.keys(modules).forEach(m=>{
if(m == `../../../app/resources/view/${window._view}.svelte`){
modules[m]().then(
({ default: component }) => {
View = new component({
target: document.getElementById("app"),
hydrate: true,
props: window._data,
});
}
);
}
});
export default View;
from lunox.
Related Issues (20)
- [Feature Request] Artisan Tinker Command HOT 1
- [Feature Request] Prisma Support HOT 3
- [Bugs] Invalid script being added to html in dev mode
- Bug Router Parameter in windows HOT 2
- Update Vitejs to v4 HOT 2
- Change to Monorepo HOT 1
- Eject module related View to @lunox/view
- Eject knex and objection to @lunox/eloquent HOT 3
- [lunox-core] Need Gate and Policy feature for Advance Authorization
- [lunox-core] Eject lunox Filesystem to separate Module
- [lunox-core] Eject Validation to separate module
- [lunox-core] run artisan command without build step HOT 1
- [lunox-core] Facade cannot access getter or properties
- [lunox-core] Testing Source Code using Vitest
- [lunox-core] Encryption module break on bun
- [lunox-eloquent] Need Documentation of How to use `@lunoxjs/eloquent` HOT 8
- [create-lunox-app] Need multiple Preset that can handle multiple library
- [lunox-view] Support SPA
- [preset] Multiple Preset Progress
- [lunox-core] json should not be parsed as form data
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 lunox.