-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while preprocessing #3
Comments
It looks very similar to the case when Svelte 5.x component and Svelte 4.x runtime are used in the same time. Try to specify exact version for the package
|
Thanks for your reply mkozhukh, `<script> ` For once and still `✘ [ERROR] Error while preprocessing /repos/fullstack/node_modules/wx-svelte-core/src/themes/Willow.svelte - Cannot read properties of undefined (reading 'raw') [plugin vite-plugin-svelte:optimize-svelte]
✘ [ERROR] Error while preprocessing /repos/fullstack/node_modules/wx-svelte-core/src/themes/WillowDark.svelte - Cannot read properties of undefined (reading 'raw') [plugin vite-plugin-svelte:optimize-svelte]
✘ [ERROR] Error while preprocessing /repos/fullstack/node_modules/wx-svelte-core/src/themes/Material.svelte - Cannot read properties of undefined (reading 'raw') [plugin vite-plugin-svelte:optimize-svelte]
4:13:58 PM [vite] error while updating dependencies: |
ok, just run some checks and fixed few errors related to svelte kit it works for me in the next combination of dependencies ( default svelte kit starter project ) "devDependencies": {
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"@types/eslint": "^9.6.0",
"eslint": "^9.7.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.36.0",
"globals": "^15.0.0",
"prettier": "^3.3.2",
"prettier-plugin-svelte": "^3.2.6",
"svelte": "5.1.9",
"vite": "^5.0.3"
},
"dependencies": {
"wx-svelte-filemanager": "^2.0.0-beta-3",
"wx-svelte-gantt": "^2.0.0-beta-3",
"wx-svelte-grid": "^2.0.0-beta-3"
} which version of svelte/svelte-kit is used in your case ? |
Thanks for that quick update, I very much appreciate it. I am still getting the same errors, though. The only major difference is that I am using adapter-node. I am gonna setup a clean project tomorrow and see if I can get it to work there, and then narrow down the problem by re-adding components and dependencies. |
Heyo, I am trying to use Svar inside of my SvelteKit project. I went back to a Svelte 4 state (did a clean install of all node dependencies), since Svelte 5 doesn't seem to be supported, yet.
However, I am getting the following errors crashing my app:
I've followed this installation guide: https://docs.svar.dev/svelte/gantt/guides/installation_initialization
The text was updated successfully, but these errors were encountered: