Errors when using with webpack
See original GitHub issueHello. 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:
- Created 6 years ago
- Reactions:3
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@gluons Yeah,
parse
pulls in thecoffeescript
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. 😃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.