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
◇ Successfully migrated app.html!
│
■ Failed to migrate src/routes/users/+page.svelte: Manipulation error: A syntax error was inserted.
FOyV3sWcRSVlb-BZ1tai2.ts:5:21 - error TS1005: ',' expected.
5 import { Accordion.Item } from '@skeletonlabs/skeleton-svelte';
~
Error replacing tree: The children of the old and new trees were expected to have the same count (1:3).
-- Details --
Path: /FOyV3sWcRSVlb-BZ1tai2.ts
Text: "...port type { User } from '$lib/types';\r\n import { Accordion } from '@skeletonlabs/skeleton-svelte';\r\n import { Accordion.Item } from '@skeletonlabs/skeleton-svelte';\r\n import { Avatar } from '@skeletonlabs/skeleton';\r\n import { getModalStore } from '@skeletonlabs/..."
Stack: Error: Error replacing tree: The children of the old and new trees were expected to have the same count (1:3).
at #handleChildren (C:\Users\dani7\AppData\Local\npm-cache\_npx\eb824a1564de2b6d\node_modules\ts-morph\dist\ts-morph.js:1469:19)
at ParentFinderReplacementNodeHandler.handleNode (C:\Users\dani7\AppData\Local\npm-cache\_npx\eb824a1564de2b6d\node_modules\ts-morph\dist\ts-morph.js:1463:33)
at ParentFinderReplacementNodeHandler.handleNode (C:\Users\dani7\AppData\Local\npm-cache\_npx\eb824a1564de2b6d\node_modules\ts-morph\dist\ts-morph.js:1620:19)
at NodeHandlerHelper.handleForValues (C:\Users\dani7\AppData\Local\npm-cache\_npx\eb824a1564de2b6d\node_modules\ts-morph\dist\ts-morph.js:1404:21)
at #handleChildren (C:\Users\dani7\AppData\Local\npm-cache\_npx\eb824a1564de2b6d\node_modules\ts-morph\dist\ts-morph.js:1473:25)
at ParentFinderReplacementNodeHandler.handleNode (C:\Users\dani7\AppData\Local\npm-cache\_npx\eb824a1564de2b6d\node_modules\ts-morph\dist\ts-morph.js:1463:33)
at ParentFinderReplacementNodeHandler.handleNode (C:\Users\dani7\AppData\Local\npm-cache\_npx\eb824a1564de2b6d\node_modules\ts-morph\dist\ts-morph.js:1620:19)
at NodeHandlerHelper.handleForValues (C:\Users\dani7\AppData\Local\npm-cache\_npx\eb824a1564de2b6d\node_modules\ts-morph\dist\ts-morph.js:1404:21)
at #handleChildren (C:\Users\dani7\AppData\Local\npm-cache\_npx\eb824a1564de2b6d\node_modules\ts-morph\dist\ts-morph.js:1473:25)
at ParentFinderReplacementNodeHandler.handleNode (C:\Users\dani7\AppData\Local\npm-cache\_npx\eb824a1564de2b6d\node_modules\ts-morph\dist\ts-morph.js:1463:33)
│
└ Migration canceled, nothing written to disk
Expected Behavior
The expected behavior is to sucessfully migrate the accordionItem
Steps To Reproduce
Make a component in svelte with the import:
import { AccordionItem } from '@skeletonlabs/skeleton';
Then run the migration cli
npx @skeletonlabs/skeleton-cli migrate skeleton-3
Link to Reproduction / Stackblitz
No response
More Information
The import it fails on in our project is
import {
Accordion,
AccordionItem,
Avatar,
getModalStore,
type ModalComponent,
type ModalSettings
} from '@skeletonlabs/skeleton';
But it is also tested with an individual import statement like:
import { AccordionItem } from '@skeletonlabs/skeleton';
And the same error appears
The text was updated successfully, but these errors were encountered:
Current Behavior
When migrating with
This error appears
Expected Behavior
The expected behavior is to sucessfully migrate the accordionItem
Steps To Reproduce
Make a component in svelte with the import:
import { AccordionItem } from '@skeletonlabs/skeleton';
Then run the migration cli
Link to Reproduction / Stackblitz
No response
More Information
The import it fails on in our project is
But it is also tested with an individual import statement like:
And the same error appears
The text was updated successfully, but these errors were encountered: