justadudewhohacks / justadudewhohacks/opencv4nodejs

Module parse failed: Unexpected character '�' (1:2)

Open
#752 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5.1k
Forks
826
PR merge metrics
No merged PRs in 30d

Description

When I install opencv4nodejs in vue application and run it I get the following error message

```
Failed to compile.

./node_modules/opencv4nodejs/build/Release/opencv4nodejs.node 1:2
Module parse failed: Unexpected character '�' (1:2)
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)
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Vue application build with opencv4nodejs and inspect how webpack handles node_modules/opencv4nodejs/build/Release/opencv4nodejs.node. Determine the appropriate package or bundling behavior, then verify that the application compiles without the binary parse error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, nodejs, webpack
Domain
build-system, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.