Module parse failed: Unexpected character '�' (1:0)
See original GitHub issueWhile packaging code that includes sharp ^0.22.1
, I encountered this error:
ERROR in [redacted]/node_modules/sharp/build/Release/sharp.node 1:0
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
@ [redacted]/node_modules/sharp/lib/input.js 5:14-52
@ [redacted]/node_modules/sharp/lib/index.js
@ [redacted]
Issue Analytics
- State:
- Created 4 years ago
- Comments:21 (9 by maintainers)
Top Results From Across the Web
Webpack 4 - Module parse failed: Unexpected character '@'
It's now throwing an error: Module parse failed: Unexpected character '@' You may need an appropriate loader to handle this file type.
Read more >Module parse failed. Unexpected character '#'. #4603 - GitHub
I am using electron-vue. I would like to write some unit test. But encountered the following error. $npm run unit > dockeron@0.0.1 unit...
Read more >Can't build with webpack - Material Design for Bootstrap
css 1:0 Module parse failed: Unexpected character '@' (1:0) You may need an appropriate loader to handle this file type, currently no loaders...
Read more >Module parse failed: Unexpected character ' ' (1:0) You may ...
Coding example for the question Module parse failed: Unexpected character ' ' (1:0) You may need an appropriate loader to handle this file...
Read more >Angular || How To Resolve Issue: “Module Parse Failed ...
This error basically means there is no appropriate webpack file loader installed in the project to handle the file being referenced. Out of...
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
@compwright @Susan123456789 I’ve added a fix. I’ve created a beta version for you to test. Install it using:
I’m excluding the
sharp
package by default. However, I’m not sure about this option that you are using:Can you tell me what this does and if you need the plugin to have this option?
@compwright @grjzwaan Awesome! Thanks for the feedback guys. I’m going to package and push the beta soon.