# Slice Manager import issue

**URL:** <https://community.prismic.io/t/slice-manager-import-issue/20102>\
**Category:** Developing with Prismic\
**Tags:** nuxtjs, slice-machine\
**Created:** [February 2, 2026, 4:03pm UTC](https://community.prismic.io/t/slice-manager-import-issue/20102 "2026-02-02T16:03:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas.digregorio](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/thomas.digregorio/32/1737_2.png) [@thomas.digregorio](https://community.prismic.io/u/thomas.digregorio)\
**Post date:** [February 2, 2026, 4:03pm UTC](https://community.prismic.io/t/slice-manager-import-issue/20102/1 "2026-02-02T16:03:18Z")

</div>

Hi Prismic team,

I’m trying to run the `fetch-models.ts` script described in [the slice machine migration doc](https://prismic.io/docs/migrate-to-slice-machine#install-slice-machine), but I receive this error

 ![Screenshot 2026-02-02 at 16.57.00](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/b/b72af3dfc1871055594504f294a2b138aabf9daf.jpeg)

Would you be able to help?

### Impacted feature

Slice Machine Manager

### What steps have you taken to resolve this issue already?

- The error is coming from “node\_modules/@slicemachine/manager/dist/managers/customTypes/CustomTypesManager.js:6”
- Looking at “node\_modules/@prismicio/types-internal/lib/customtypes/CustomType.js:54”, I see the export defined: `exports.CustomType = customTypeReader(Section_1.DynamicSection);`

### Errors

SyntaxError: The requested module '@prismicio/types-internal/lib/customtypes' does not provide an export named 'CustomType'

### Your Role

Developer

### Hosting provider

Not relevant

### Package.json file

Using Node v22.18.0

```auto
    "dependencies": {
        "@nuxt/eslint": "^1.13.0",
        "@nuxt/fonts": "^0.13.0",
        "@nuxt/image": "^2.0.0",
        "@nuxt/scripts": "^0.13.2",
        "@prismicio/client": "^7.21.4",
        "@slicemachine/manager": "^0.27.1",
        "@unhead/vue": "^2.1.2",
        "eslint": "^9.39.2",
        "nuxt": "^3.21.0",
        "p-limit": "^7.2.0",
        "vue": "^3.5.27",
        "vue-router": "^4.6.4"
    },
    "devDependencies": {
        "@nuxtjs/prismic": "^5.2.0",
        "@slicemachine/adapter-nuxt": "^0.3.95",
        "netlify-cli": "^23.14.0",
        "sass-embedded": "^1.97.3",
        "slice-machine-ui": "^2.21.1"
    }

```

### Steps to reproduce

- Run `npx tsx fetch-models.ts` in the repository
- The error appears on the first line: `import { createSliceMachineManager } from "@slicemachine/manager"`

---

<div class="post-metadata">

**Author:** ![xavier.rutayisire](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/xavier.rutayisire/32/6461_2.png) [@xavier.rutayisire](https://community.prismic.io/u/xavier.rutayisire)\
**Post date:** [February 4, 2026, 1:21pm UTC](https://community.prismic.io/t/slice-manager-import-issue/20102/2 "2026-02-04T13:21:26Z")

</div>

Hi Thomas,

This looks like an ESM/CJS interoperability issue on our side, but it can also depend on how your project is configured.

Since I don’t have your exact setup, here are a few things worth checking on your end:

- **`package.json` → `type` field**  
If you have `"type": "module"`, try temporarily removing it and run the script again. That can change how Node resolves exports.

- **`tsconfig.json` → `module` and `moduleResolution`**  
Check what you’re using there (`NodeNext`, `Node16`, `CommonJS`, etc.). A mismatch between your TS config and how Node executes the file (especially with `tsx`) can cause this kind of export error.

If none of that helps, could you share:

- your `tsconfig.json`

- your `package.json`

That will help narrow it down properly.

Xavier

---

<div class="post-metadata">

**Author:** ![thomas.digregorio](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/thomas.digregorio/32/1737_2.png) [@thomas.digregorio](https://community.prismic.io/u/thomas.digregorio)\
**Post date:** [February 5, 2026, 1:20pm UTC](https://community.prismic.io/t/slice-manager-import-issue/20102/3 "2026-02-05T13:20:28Z")

</div>

Hi @xavier.rutayisire,

- Removing `“type”: “module”` is far from ideal, but does the trick 👍
- I had found a workaround using Jiti to run the script

Thanks!
