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

Bug: I can't start my compiled project because of multer. #51

Closed
XLearner opened this issue Dec 5, 2023 · 2 comments
Closed

Bug: I can't start my compiled project because of multer. #51

XLearner opened this issue Dec 5, 2023 · 2 comments

Comments

@XLearner
Copy link

XLearner commented Dec 5, 2023

Bug Report

Current Behavior
I can successfully compile my project with webpack. However, I can not start the compiled js file with the node order. And every time I do this node service.cjs, there will occur the error message: "Cannot find module 'multer'".

Input Code
- REPL or Repo link if applicable:

Expected behavior/code
I hope that I can run the compiled js file.

Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
image

@titanism
Copy link
Contributor

You need to install multer as a dependency.

@XLearner
Copy link
Author

XLearner commented Dec 16, 2023

You need to install multer as a dependency.

@titanism
I'd tried to install multer directly for use, but this problem still exists. Moreover, the multer module is also referenced by @koa/multer, which seems to indicate that the multer module has not been correctly bundled into the packaged js file.

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