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.

Module parse failed - can't run

See original GitHub issue

Hello, I’m trying to run MobX AJV Form, but get these errors:

ERROR in ./~/ajv/lib/refs/json-schema-draft-04.json
Module parse failed: C:\proj\node_modules\ajv\lib\refs\json-schema-draft-04.json Line 2: Unexpected token :
You may need an appropriate loader to handle this file type.
| {
|     "id": "http://json-schema.org/draft-04/schema#",
|     "$schema": "http://json-schema.org/draft-04/schema#",
|     "description": "Core schema meta-schema",
 @ ./~/ajv/lib/ajv.js 352:23-66

ERROR in ./~/ajv/lib/refs/json-schema-v5.json
Module parse failed: C:\proj\node_modules\ajv\lib\refs\json-schema-v5.json Line 2: Unexpected token :
You may need an appropriate loader to handle this file type.
| {
|     "id": "https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/json-schema-v5.json#",
|     "$schema": "http://json-schema.org/draft-04/schema#",
|     "description": "Core schema meta-schema (v5 proposals)",
 @ ./~/ajv/lib/v5.js 20:21-58

And also warnings Cannot resolve module:

  • regenerator
  • nodent
  • js-beautify

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
foxhound87commented, Jul 15, 2016

Remove the include for the json loader, otherwise cannot load json from node_modules

0reactions
foxhound87commented, Jul 15, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

Module parse failed: You may need an appropriate loader to ...
I'm running into the same issue, it seems to happen when I have the storyshots addon installed and use dynamic module loading. Basically...
Read more >
Module parse failed getting error in webpack - Stack Overflow
I am working on webpack in react, when i run this command npx webpack --config webpack.config.
Read more >
Storybook error - "ModuleParseError: Module parse failed
It seems that after that, I started getting the following error when I run yarn run storybook : kris@kris-macbook miso3 % yarn run...
Read more >
Odyssey Lift-off I: "Module parse failed: Unexpected token" Error
More than happy to help, I've been there too! running react@latest installed react 18 which is pretty recent and not compatible with some...
Read more >
Getting "Module parse failed: Unexpected token" error while ...
Solution for getting " Module parse failed : Unexpected token" error while doing npm-start. ... Your browser can't play this video.
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