Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Framer doesn't see an npm package that exists

I'm creating a framer code component and I want to import a library with the following code:

import { registerCoreBlocks } from "@quillforms/react-renderer-utils"
import { FormObj } from "@quillforms/renderer-core/build-types/types"

I am getting this error: enter image description here

The two libraries have npm packages:

  • @quillforms/react-renderer-utils

  • @quillforms/renderer-core

The project worked fine locally (by locally I mean a Vite project). How can I resolve this issue? What may cause it?

My local package.json dependencies are:

"@quillforms/react-renderer-utils": "^5.10.0",
"@quillforms/renderer-core": "^5.8.0",
"localforage": "^1.10.0",
"match-sorter": "^6.3.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.22.2",
"sort-by": "^1.2.0"
like image 824
Laczkó Örs Avatar asked Dec 23 '25 02:12

Laczkó Örs


1 Answers

See here.

The framer docs explicitly state that

Importing npm packages is currently an experimental feature. Most packages typically don’t work unless unless they were built specifically for Framer. Some projects with multiple npm imports may run into errors with adding multiple npm dependencies, as sub-dependency conflicts can occur.

Try importing your code into a local environment.

like image 91
ichang3765 Avatar answered Dec 25 '25 05:12

ichang3765



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!