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

Requiring a CommonJS module from node_modules #1812

Open
5UNDJER opened this issue Aug 11, 2020 · 0 comments
Open

Requiring a CommonJS module from node_modules #1812

5UNDJER opened this issue Aug 11, 2020 · 0 comments

Comments

@5UNDJER
Copy link

5UNDJER commented Aug 11, 2020

I'm trying to require a commonJS module ("fluent-ffmpeg") from node_modules, that I have installed with npm, into my project that uses AMD. I,ve followed the instructions in the section RequireJS in Node, however, I then get an error stating that the module has not been loaded yet for context. Looking at the docs, It is said to list that dependency name in the define, however then its saying that the module cannot be found. So my question is, how do i require a CommonJS module inside a define(dependencies, function), that I have installed using npm, so that it doesnt give an error that the module has not yet been loaded?

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