Replies: 2 comments 2 replies
-
@artf Sorry to bother you, but can you help me with this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'd suggest to follow the guide here on how to deal with dependencies in your |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I needed to work with cookies and masks in the component I'm building using the grapesjs cli.

More precisely I need to use these libraries inside the "script" property in the type definition.
I'm trying to use the vanilla-masker and js-cookies libraries for this, but when using IMPORT inside the components.js file I get the error: "js_cookie__WEBPACK_IMPORTED_MODULE_0__".
I saw that if I import the packages inside index.js they work correctly.
I even tried to pass it via OPTS, but within the script function these variables are not accessible.
I also try to use require() but dont work too.
Beta Was this translation helpful? Give feedback.
All reactions