Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion precompile-schemas/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const ajv = new Ajv({
strictNumbers: false,
logger: false,
loadSchema: (uri) => {
schemaPath = fileURLToPath(uri);
schemaPath = fileURLToPath(new URL(decodeURI(uri)));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you provide me value of uri on windows?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file:///C%253A/Users/varsh/Desktop/webpack/schemas/WebpackOptions.json

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird, looks like ajv is doing something extra, but should not

const schema = require(schemaPath);
const processedSchema = processJson(schema);
processedSchema.$id = uri;
Expand Down