question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[json-schema-loader] Breaks Webpack 2

See original GitHub issue

As per the most recent commit - https://github.com/cloudflare/json-schema-loader/commit/2e75f223a77c987b66e98d054c3018d3e64f93dc - this now breaks for webpack 2.

The docs specify that callback should be invoked with a second argument that looks like a sourcemap, not an arbitrary type. https://webpack.js.org/api/loaders/#this-callback.

We are able to use 0.0.3 and it works, but you might want to specify webpack version in the readme.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
handrewscommented, May 9, 2017

@wmonk if we decide we don’t need json-schema-loader in the doca suite, we would still likely fix it for webpack 2 and keep it as an active project, we’d just change it to be standalone and give it its own issues list, etc.

0reactions
handrewscommented, Apr 30, 2018

json-schema-loader has been deprecated in favor of the new @cloudflare/json-schema-ref-loader in the https://github.com/cloudflare/json-schema-tools repository. @cloudflare/json-schema-ref-loader does not use the extra parameter. The requested bundling feature is tracked as cloudflare/json-schema-tools#2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Releases · cloudflare/json-schema-loader - GitHub
This doesn't break anything but fixes problems with webpack2 that doesn't use this.inputValue anymore; The version was bumped so it's more clear that ......
Read more >
json-schema-loader - npm
Webpack loader that resolves Json Schema references.. Latest version: 1.0.0, last published: 6 years ago. Start using json-schema-loader in ...
Read more >
webpack.validateSchema is not a function - Stack Overflow
It turns out that some of my loaders were not working correctly; Bootstrap and some other things were not being loaded in properly,...
Read more >
rushstack/rushstack - Gitter
Hey guys, I'm seeing some very strange behaviour when running @microsoft/gulp-build-core whereby a module is being resolved as {} i.e. an empty object....
Read more >
Help with getting start creating JSON form app - Discourse
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found