Skip to main content
ArcBlock Community

Import {} from @ different libraries than what is used for wrapper

JustHODL
Support
pages-kitdemoresolvedtutorial

Hey fam,

I'm trying to build some UI controllers but every time I try to import some other libraries I get this error: Failed to resolve module specifier "@". Relative references must start with either "/", "./", or "../".

Is there a way to do this? z1SubswWWkUtz75uZC5Qs56Fg3zspdnXypk

image.png

2 replies

Yongzhuo Liang22 months ago

Pages Kit custom components, for security and size control, we use the built-in package form, and can not freely import components

For more details, please refer to Custom Component

The problem you're having should be solved by using @blocklet/pages-kit/builtin/mui/material, or by importing the @mui dependencies in full using a CDN.

JustHODL22 months ago

Amazing!! Thanks

Reply