Skip to content
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

SSR error during vite dev: Export 'LoadingProps' is not defined #4

Closed
pheuter opened this issue Oct 25, 2023 · 3 comments · Fixed by #5
Closed

SSR error during vite dev: Export 'LoadingProps' is not defined #4

pheuter opened this issue Oct 25, 2023 · 3 comments · Fixed by #5

Comments

@pheuter
Copy link

pheuter commented Oct 25, 2023

Code:

<script lang="ts">
	import { Command } from 'cmdk-sv';
</script>

<Command.Dialog label="Command Menu">
	<Command.Input />
	<Command.List>
		<Command.Empty>No results found.</Command.Empty>

		<Command.Group heading="Letters">
			<Command.Item>a</Command.Item>
			<Command.Item>b</Command.Item>
			<Command.Separator />
			<Command.Item>c</Command.Item>
		</Command.Group>

		<Command.Item>Apple</Command.Item>
	</Command.List>
</Command.Dialog>
Error: Parse failure: Export 'LoadingProps' is not defined (16:0)
At file: /node_modules/cmdk-sv/dist/cmdk/index.js
Contents of line 16: LoadingProps, DialogProps, CommandProps, EmptyProps, ItemProps, GroupProps, ListProps, InputProps, SeparatorProps };
    at ssrTransformScript (file:///node_modules/vite/dist/node/chunks/dep-bb8a8339.js:55419:15)
    at ssrTransform (file:///node_modules/vite/dist/node/chunks/dep-bb8a8339.js:55394:12)
    at Object.ssrTransform (file:///node_modules/vite/dist/node/chunks/dep-bb8a8339.js:65077:20)
    at loadAndTransform (file:///node_modules/vite/dist/node/chunks/dep-bb8a8339.js:55065:24)
    at async instantiateModule (file:///node_modules/vite/dist/node/chunks/dep-bb8a8339.js:55951:10)
@pheuter pheuter changed the title SSR error during vite deb: Export 'LoadingProps' is not defined SSR error during vite dev: Export 'LoadingProps' is not defined Oct 25, 2023
@huntabyte huntabyte mentioned this issue Oct 25, 2023
@huntabyte
Copy link
Owner

Wow, really dropped the ball on that one! About to release a change that appears to fix this, but let me know if not!

@pheuter
Copy link
Author

pheuter commented Oct 25, 2023

0.0.2 works!

@buhodev
Copy link

buhodev commented Oct 25, 2023

I had the same error testing one of the simple examples on the svelte repl :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants