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

SCRIPT1003: Expected ':' in IE11. #17

Open
sudhakarselva opened this issue Mar 9, 2020 · 2 comments
Open

SCRIPT1003: Expected ':' in IE11. #17

sudhakarselva opened this issue Mar 9, 2020 · 2 comments

Comments

@sudhakarselva
Copy link

sudhakarselva commented Mar 9, 2020

If I open page where I use nuxt-dropzone, it throws SCRIPT1003: Expected ':' in IE11.
I thought transpiling will fix IE Support. by adding below configuration in nuxt.config.js
build: {
transpile: ['vue2-dropzone']
}
No error comes in IE but component stopped working , Following error is displayed in browser console
Error Log:-
Unknown custom element: - did you register the component correctly? For recursive
components, make sure to provide the "name" option.

Please check.
Thanks

FYKI:-
Using Nuxt version:- ^2.10.2
"nuxt-dropzone": "^1.0.4"

@Etheryte
Copy link
Owner

Etheryte commented May 5, 2020

Since I don't have access to a machine with IE, I can't really conveniently test nor fix this. Thanks for reporting this, I'm going to leave the ticket open, PRs welcome.

@Spreizu
Copy link

Spreizu commented Jun 29, 2020

Actually, there is a workaround for this. The module that needs transpiling is 'dropzone':

transpile: [
	({isLegacy}) => isLegacy && 'dropzone',	// Needed for IE support
]

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

No branches or pull requests

3 participants