You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: