Open Martmists-GH opened 2 years ago
It seems the Prism object isn't actually modified for some reason... any clue why this might be happening?
Prism's languages have dependencies, and it is the job of the one loading dependencies to make sure that they are satisfied. E.g. Arduino requires C++, so C++ must be loaded before Arduino. This is why you get this error.
Of course, resolving dependencies correctly isn't easy, so you shouldn't do it manually. We have a babel plugin that automatically does the language-loading for you. This is probably what you want.
Since you're targeting browsers, you could also use the Autoloader plugin, this plugin will load languages (usually from a CDN) as needed in the browser.
Hope this helps.
How do I use the babel plugin from Kotlin/JS? as far as I know it only uses webpack
I think you can include babel plugins in your webpack.config.js
file. I haven't tried it yet, though.
Information:
Description Error:![Screenshot_20220116_150356](https://user-images.githubusercontent.com/16361449/149663297-e9ca6358-0e8b-4a31-91a7-fd207d57232b.png)
frontend.js:68 Uncaught TypeError: Cannot set properties of undefined (setting 'keyword')
Seems to happen onarduino
extendingcpp
:Example
Code (Kotlin/JS):