Closed HuskyMoonMoon closed 6 years ago
This is likely a deficiency in webpack as Node.js module loading treats .json
files as requirable without the .json
extension. The same source base works fine (without modification) in browserify as well. I'm going to close this since it's not something I'll likely change but if you cannot find a way to make webpack work right (configuration, loader, ...) it should be reopened.
In
lib/validation/validators.json
at line 31It seems like this line is preventing webpack to resolve for
schema.json
file inswagger-schema-official
packageI fixed it by add
.json
to allow webpack to correctly resolve JSON dependency.