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.

Question: How do i use this with webpack ?

See original GitHub issue

While trying to integrate it with webpack, i get the following error:

ERROR in ./~/slate/~/cheerio/~/entities/maps/decode.json
Module parse failed: {path}\node_modules\slate\node_modules\cheerio\node_modules\entities\maps\decode.json Unexpected token (1:4)
You may need an appropriate loader to handle this file type.

If I include the json-loader loader, then i start getting this error:

Module build failed: SyntaxError: Unexpected token i
    at Object.parse (native)
    at Object.module.exports ({path}\node_modules\json-loader\index.js:7:48)
 @ multi path

Am I doing something wrong here ?

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
sarincasmcommented, Jan 25, 2017

solved it

1reaction
oyeanujcommented, Feb 6, 2017

@eelsweb Ran into this as well (your first mentioned problem) and I do have the json-loader. Can you share your solution/your webpack config?

Read more comments on GitHub >

github_iconTop Results From Across the Web

webpack-interview-questions/answers.md at master - GitHub
Question : What is webpack? Answer: webpack is a module bundler for javascript applications. Webpack recursively builds every module in your application, then ......
Read more >
9 Basic webpack Interview Questions And Answers in 2019
9 Basic webpack Interview Questions And Answers in 2019 · Q1: What is webpack? · Q2: Name some benefits of using webpack ·...
Read more >
Webpack Interview Questions - eduCBA
This is a guide to Webpack Interview Questions. Here we discuss the introduction and basic & advanced webpack interview questions.
Read more >
20 Webpack Interview Questions and Answers - CLIMB
Webpack Interview Questions and Answers · 1. What is Webpack? · 3. How does Webpack work? · 5. What are the advantages of...
Read more >
An intro to Webpack: what it is and how to use it
In brief, Webpack goes through your package and creates what it calls a dependency graph which consists of various modules which your webapp ......
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