Skip to content
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

Broken JavaScript in test application #291

Open
mbabker opened this issue Jul 10, 2021 · 1 comment
Open

Broken JavaScript in test application #291

mbabker opened this issue Jul 10, 2021 · 1 comment

Comments

@mbabker
Copy link
Contributor

mbabker commented Jul 10, 2021

When starting with a new plugin build based on the skeleton, the JavaScript that gets built for both Gulp entries spits out console errors from what looks to be bad imports of the Semantic UI components.

Frontend:

Uncaught TypeError: jquery(...).sidebar is not a function
    at HTMLDocument.<anonymous> (app.js:28)
    at mightThrow (jquery.js:3766)
    at process (jquery.js:3834)

Uncaught TypeError: jquery(...).popup is not a function
    at HTMLDocument.<anonymous> (app.js:31)
    at mightThrow (jquery.js:3766)
    at process (jquery.js:3834)

Admin:

Uncaught TypeError: jquery(...).sidebar is not a function
    at HTMLDocument.<anonymous> (app.js:28)
    at mightThrow (jquery.js:3766)
    at process (jquery.js:3834)

Uncaught TypeError: this.dropdown is not a function
    at jQuery.fn.init.productAutoComplete (sylius-product-auto-complete.js:20)
    at HTMLDocument.<anonymous> (app.js:50)
    at mightThrow (jquery.js:3766)
    at process (jquery.js:3834)

FWIW, changing from the Gulp build to Webpack Encore does seem to resolve this. But, I honestly have no idea how many wrenches that would throw into things.

@FloralExMachina
Copy link

i also get this error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants