-
Notifications
You must be signed in to change notification settings - Fork 31
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
importing the sdk causes a warning in webpack #208
Comments
@jooohn Thanks for creating a repo with a reproduced issue! What problems does this warning cause? From what I see at webpack/webpack#196, it a long-running issue with Webpack and I'm not sure if we should act on it. |
According to this issue, a library built with percel causes the warning when the built js is bundled with webpack by library users. I think it's an issue of either webpack or parcel, so possible approaches would be like this:
|
Hi, |
I get the same thing using webpack and vue. App.vue import { init as initContentfulExtension } from 'contentful-ui-extensions-sdk'
export default {
data () {
return {
extension: null
}
},
created () {
initContentfulExtension((extension) => {
this.extension = extension
this.extension.window.startAutoResizer()
})
}
} |
This causes build failures on Netlify with apps created using the |
I believe this issue should be fixed in newer versions of the SDK, as we're no longer using parcel in this repo. Please feel free to open a new issue if this is still causing you problems. |
Maybe because of this parcel's issue (parcel-bundler/parcel#2883), I've run into the same problem (https://github.com/jooohn/reproduce-contentful-ui-extensions-error).
I believe it's not originally this sdk's problem, but I want to know when the problem is fixed anyway!
The text was updated successfully, but these errors were encountered: