Currently facing some challenges while attempting to integrate node-vibrant
into my Angular 7 project:
-Successfully imported with
import * as Vibrant from 'node-vibrant';
, but encountering a warning in VS Code:
Module '"/Users/xxxx/Documents/dev/x/node_modules/node-vibrant/lib/index"' resolves to a non-module entity and cannot be imported using this construct
The app functions properly with live-reloading during development, however, building the project results in a fatal error mentioned above.
-Another approach is importing it using
import * as Vibrant from 'node-vibrant';
, yet it triggers a warning (again, functioning correctly with live-reloading in dev):
Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.
This error also causes build failures.
Struggling to find a way to successfully import this file, leading to an inability to proceed with the build process. Any valuable workarounds for this issue?