Error migratin slice-machine-ui from 0.46 to 0.1.0-beta.1

Hello, everyone I updated slice-machine-ui from 0.46 to 0.1.0-beta.1 and I get this error

$ start-slicemachine --port 9999
[slice-machine] Launching server

[slice-machine] Now running on http://localhost:9999 !

[slice-machine] ╭───────────────────────────────────────────────────╮
│   🍕 SliceMachine 0.1.0 started.                  │

[slice-machine] node:fs:1504

Error: ENOTDIR: not a directory, lstat website-next/packages/@smLib/slices/index.ts/model.json'
    at Proxy.lstatSync (node:fs:1504:3)
    at Object.exists (../../../lib/utils/files.ts:55:25)
    at fromJsonFile (../../../lib/queries/component.ts:55:25)
    at Object.getComponentInfo (../../../lib/queries/component.ts:96:63)
    at ../../../lib/queries/listComponents.ts:38:29
    at Array.reduce (<anonymous>)
    at handleLibraryPath (../../../lib/queries/listComponents.ts:36:56)
    at ../../../lib/queries/listComponents.ts:67:28
    at (<anonymous>)
    at Object.listComponentsByLibrary (../../../lib/queries/listComponents.ts:67:5) {
  errno: -20,
  syscall: 'lstat',
  code: 'ENOTDIR',
  path: 'website-next/packages/@smLib/slices/index.ts/model.json'

[slice-machine] Thanks for using SliceMachine

After some digging I found that, problem was with index.ts file, problem is that slice-machine-ui thinks that index.ts file is folder and doesn't treat it same as index.js file

Hey Arnas,

Sorry I didn't get back sooner.

Thanks for pointing this out. Is it related to this issue?

Hello, @Phil ,

Yes, it's related to this. Sorry, for creating new issue, didn't saw this one.

1 Like

No problem. It seems it's being dealt with this week sometime so that's cool.

It will be best to get updates for this in that thread :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.