Replies: 3 comments
-
I'm having the exact same issue, tried all possible options as well. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This works for me:
2, change
|
Beta Was this translation helpful? Give feedback.
0 replies
-
same issue, it didn't work, I'm trying to use grpc-web files |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
I'm facing similar issues as to what is discussed on #2579.
I'm running into a problem when I try to view my components, from a component library, in the browser.
Background
ui
that I'm adding https://www.shadcn-svelte.com/ components to.When I add a component from the
ui
package to theweb
app and runpnpm dev
I get the following error:If I run
pnpm check
andpnpm build
on both theui
andweb
projects, they complete without any errors.The file that is mentioned in the stack trace does exist - this is the contents of it:
Svelte Check
Running
svelte-kit sync && svelte-check --tsconfig ./tsconfig.json
on both theui
package andweb
app produces:svelte-check found 0 errors and 0 warnings
.web
vite configI've also tried adding the following the vite config, without any success:
and then
and also
+page.svelte
I've tried both
import * as Card from "ui";
andimport Card from "ui";
. Same error with both.app.html
I tried adding
<script>var exports = {};</script>
to thehead
. This did not solve the issue.index.mjs
inui
projectTried changing
to
Also tried:
I also tried
export * as default from "./components/ui/card/index.js";
which resulted inError: Parse failure: Unexpected keyword 'default'
.Also tried renaming
index.cjs
toindex.js
(also update reference to this file in thepackage.json
.Still no joy.
tsconfig.json
ofweb
Tried adding:
"module": "esnext",
also tried"module": "es6",
"allowSyntheticDefaultImports": true,
Any help is greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions