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

ERROR in ./node_modules/form-data/lib/form_data.js Module not found: Error: Can't resolve 'fs' #52

Open
truumahn opened this issue Sep 29, 2020 · 5 comments

Comments

@truumahn
Copy link

truumahn commented Sep 29, 2020

Log:

ERROR in ./node_modules/form-data/lib/form_data.js
Module not found: Error: Can't resolve 'fs' in '/path/to/ptoject/node_modules/form-data/lib'
 @ ./node_modules/form-data/lib/form_data.js 7:9-22
 @ ./node_modules/openapi-snippet/node_modules/httpsnippet/src/index.js
 @ ./node_modules/openapi-snippet/index.js

Explanation:

A recent change in the httpsnippet package - introduced in v1.23.0 - broke builds when using openapi-snippet.

Workaround:

Force openapi-snippet to use the 1.22.0 version. With yarn: https://classic.yarnpkg.com/en/docs/selective-version-resolutions/

@erunion
Copy link

erunion commented Oct 6, 2020

Sorry about that, I've just submitted a fix in Kong/httpsnippet#184.

@ErikWittern
Copy link
Owner

@erunion nice to see this fixed. Is a patch planned to distribute the fix?

@erunion
Copy link

erunion commented Oct 16, 2020

@ErikWittern I don't manage or use this project but a new release of HTTPSnippet was pushed out with my fix for this issue so it should be able to be pulled in here to resolve the problem.

@ErikWittern
Copy link
Owner

@erunion Thanks for the information!

The original author of this issue, @truumahn, states that the issue was

introduced in v1.23.0

Given that this is still the latest released version as of now (see npm and GitHub), I will hold off with updating the dependency until the new version is released.

@erunion
Copy link

erunion commented Oct 19, 2020

Sorry yeah you're right. My fix for this is in Kong/httpsnippet@0fc7f4a which hasn't been released yet.

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

3 participants