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

error while importing wrap #328

Open
Pareek499 opened this issue Oct 24, 2024 · 3 comments
Open

error while importing wrap #328

Pareek499 opened this issue Oct 24, 2024 · 3 comments

Comments

@Pareek499
Copy link

I am trying to import "wrap " using this statement
import { wrap } from 'svelte-spa-router/wrap'

I am using it here,
let routes = { "/test": Test, "/error": wrap({ component: error, userData: {foo: 'bar'} }) }
But I get this error,
Module not found: Error: Package path ./wrap is not exported from package D:\webhook new\client\node_modules\svelte-spa-router (see exports field in D:\webhook new\client\node_modules\svelte-spa-router\package.json)

I have tried everything, but nothing seems to be working, when I hover over the import statement in VS code, it shows correct insight about wrap method, but it is not working when I am using it.

Please help

@carbogninalberto
Copy link
Collaborator

Are you using svelte 4 or 5?

@Pareek499
Copy link
Author

I am using Svelte 4

@Pareek499
Copy link
Author

Hey @carbogninalberto any solution, that I should try ? please help

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

No branches or pull requests

2 participants