Skip to content

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js - Ionic/Cordova #1

@Guirdin

Description

@Guirdin

Hello,
I can't get @techstark/opencv-js package to integrate into my Ionic/Cordova project. I get the following error:

Error

openjsTechnstarkIssue

package.json

image

webpack.config.js

image

folders

image

Tests

I've tried stuff found on the forums like creating a config folder with the “webpack.config.js” in it, but it's not being read.
I moved the file to the root of the project, it doesn't work either.
I moved to “src” and it doesn't work either…

I went to see “https://github.com/TechStark/opencv-js/issues/10” but it's a React project.
I'm under angular, so I don't have a “node-modules\react-scripts\” directory, and I can't find an equivalent.

Having a “polyfills.ts” file, I tried to use it with something I found on forums:
image

But again no results…

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions