HTML-GL icon indicating copy to clipboard operation
HTML-GL copied to clipboard

Ionic 3 Error: "Cannot find module html-gl"

Open Ugur22 opened this issue 7 years ago • 2 comments
trafficstars

I have installed html-gl via npm but whenever I try to use it in my typescript files I get the following error: Cannot find module html-gl

I imported the module as follows: import * as HTML_GL from 'html-gl';

Am I doing something wrong? If I check my node_modules folder the html-gl folder is in there.

Ugur22 avatar Dec 05 '17 13:12 Ugur22

The package.json references "main": "index.js",, which doesn't exist.

It doesn't seem this package was ever meant to work with module build tools, considering no files have any kind of export.

t-mullen avatar Mar 20 '18 02:03 t-mullen

Exactly, version 2 uses TypeScript + Webpack and you may find it in the corresponding branch. Not ready to be released yet.

2018-03-20 3:03 GMT+01:00 Thomas Mullen [email protected]:

The package.json references "main": "index.js",, which doesn't exist.

It doesn't seem this package was ever meant to work with build tools, considering no files have any kind of export.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PixelsCommander/HTML-GL/issues/86#issuecomment-374447136, or mute the thread https://github.com/notifications/unsubscribe-auth/AAxer-48VAS49_gFn7KsnWSnMWpj12oTks5tgGNngaJpZM4Q2R6K .

PixelsCommander avatar Mar 20 '18 07:03 PixelsCommander