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

Failing for webpack with Error: define cannot be used indirect #60

Open
VShingala opened this issue Nov 20, 2019 · 1 comment
Open

Failing for webpack with Error: define cannot be used indirect #60

VShingala opened this issue Nov 20, 2019 · 1 comment

Comments

@VShingala
Copy link

VShingala commented Nov 20, 2019

I am using raml-js-parser-2 which uses raml-definition-system which uses this module as dependency and during webpacking i am getting an error Error: define cannot be used indirect. Debugging error i found out that this module uses amdefine and my error is on that.

Looking into source code, I changed js/index.js file to use global function instead amdefine and it worked fine after webpacking.

Can anything be done about amdefine with webpack?

@VShingala
Copy link
Author

VShingala commented Nov 20, 2019

see webpack thread for solving this here.

Updated usage ca be found in official npm page of amdefine. see here.

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

1 participant