-
Hello, How do I import a script to a collection to use inside a hook? For example
When I build this it builds ok, but when I am trying to access the admin panel it says in the console "webpack_require(...).config is not a function". And when I remove the imports, it works fine. Any ideas how can I make this work? Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
vstarush
Jun 29, 2022
Replies: 1 comment
-
Figured it out. Fixed it by changing "require" to "import" in the script. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vstarush
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Figured it out. Fixed it by changing "require" to "import" in the script.