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.

Errors when using with webpack

See original GitHub issue

Hello. I am trying to use cson-parser in a project using webpack and its not working. Webpack tries to load the binary “coffee”

I am trying to exclude the file from being processed by webpack but still couldnt find a working solution.

WARNING in ./~/coffee-script/lib/coffee-script/coffee-script.js
require.extensions is not supported by webpack. Use a loader instead.
 @ ./~/cson-parser/lib/parse.js 34:12-36
 @ ./~/cson-parser/lib/cson-parser.js
 @ ./src/notesStorage.js
 @ ./src/index.js

WARNING in ./~/coffee-script/lib/coffee-script/coffee-script.js
require.extensions is not supported by webpack. Use a loader instead.
 @ ./~/cson-parser/lib/parse.js 34:12-36
 @ ./~/cson-parser/lib/cson-parser.js
 @ ./src/notesStorage.js
 @ ./src/index.js

WARNING in ./~/coffee-script/lib/coffee-script/coffee-script.js
require.extensions is not supported by webpack. Use a loader instead.
 @ ./~/cson-parser/lib/parse.js 34:12-36
 @ ./~/cson-parser/lib/cson-parser.js
 @ ./src/notesStorage.js
 @ ./src/index.js

WARNING in ./~/coffee-script/lib/coffee-script/register.js
require.extensions is not supported by webpack. Use a loader instead.
 @ ./~/coffee-script/lib/coffee-script/coffee-script.js 243:11-32
 @ ./~/cson-parser/lib/parse.js
 @ ./~/cson-parser/lib/cson-parser.js
 @ ./src/notesStorage.js
 @ ./src/index.js

WARNING in ./~/coffee-script/lib/coffee-script/register.js
require.extensions is not supported by webpack. Use a loader instead.
 @ ./~/coffee-script/lib/coffee-script/coffee-script.js 243:11-32
 @ ./~/cson-parser/lib/parse.js
 @ ./~/cson-parser/lib/cson-parser.js
 @ ./src/notesStorage.js
 @ ./src/index.js

WARNING in ./~/coffee-script/lib/coffee-script/coffee-script.js
214:42-49 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./~/coffee-script/lib/coffee-script/coffee-script.js
218:26-33 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

ERROR in ./~/coffee-script/bin/coffee
Module parse failed: /media/DATA/Code/personal/cerebro-plugin-boostnote/node_modules/coffee-script/bin/coffee Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type.
| #!/usr/bin/env node
|
| var path = require('path');
 @ ./~/coffee-script/lib/coffee-script/register.js 52:13-48
 @ ./~/coffee-script/lib/coffee-script/coffee-script.js
 @ ./~/cson-parser/lib/parse.js
 @ ./~/cson-parser/lib/cson-parser.js
 @ ./src/notesStorage.js
 @ ./src/index.js

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
jkremscommented, Apr 2, 2018

@gluons Yeah, parse pulls in the coffeescript entry point and that one accesses a lot of APIs that won’t work in webpack. We generally do things like parsing on the server so we don’t run into it. But PRs making it work are definitely appreciated. 😃

1reaction
brpazcommented, Dec 12, 2021

I am in the process on clean up old open issues. Since this is an old issue and I don´t use this project anymore, I will close it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How I solved and debugged my Webpack issue through trial ...
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location.
Read more >
How to Prevent Webpack Error after npm Install?
If it still doesn't work, try re-incorporating the new ForkCheckerPlugin() statement (this time using webpack 2.1.0) ...
Read more >
This will make you more efficient at debugging Webpack ...
In this article we'll build a very primitive plugin for Webpack and then I'll show you how to find out if this plugin...
Read more >
Handle loading errors & fallback with HtmlWebpackPlugin
TL;DR. If you use HtmlWebpackPlugin & sometimes things go wrong while your bundles are loading, we've got you covered.
Read more >
"0:0 error Module Error [...]" when using with webpack #1909
Hello, Using this in my package.json file : [. ... It seems there is a bug when using webpack --mode development (even in...
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