-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import in webpack not working #15
Labels
Comments
This looks related to highlightjs/highlight.js#712 |
This was fixed by removing import hljs from 'highlight.js/lib/highlight'
import javascript from 'highlight.js/lib/languages/javascript'
import xml from 'highlight.js/lib/languages/xml'
hljs.registerLanguage('javascript', javascript)
hljs.registerLanguage('xml', xml)
window['hljs'] = hljs |
kcmr
pushed a commit
that referenced
this issue
Dec 23, 2019
BREAKING CHANGE: hightlight.js should be imported by the host app fixes #15
@kcmr When trying to use version @next I get warning (which is an error actually, since component also stopes working)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I try to use it via webpack + Polymer 3 + typescript it throws the error:
Code:
Full code https://github.com/d4l3k/feedlight/blob/cc770115d7b85cb3674d74c2610a9773d68b4be3/www/src/components/index-page/index.ts#L3
The text was updated successfully, but these errors were encountered: