Wrong module output on package.json
Closed this issue · 2 comments
Context
I'm using the framework vite
for the first time in the version 2.7.2
and am trying to use webgl-memory@1.0.7
in my project.
Problem
Line 6 in 7edb852
This does not work properly on my vite setup.
The package served from npm does not contain /src/webgl-memory.js
, it's just /webgl-memory.js
.
Here's the error: [vite:resolve] Failed to resolve entry for package "webgl-memory". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "webgl-memory". The package may have incorrect main/module/exports specified in its package.json.
I'm not sure what is the intention that you set here /src/webgl-memory.js
but it will work by changing here to /webgl-memory.js
by my hand.
Since it's my first time using vite, I have no idea why vite complains about it honestly, I'm sorry.
Here's how the current package look like: https://www.unpkg.com/browse/webgl-memory@1.0.7/
Also
This package really saved my life so far.
Thanks for the report. Fixed.
Worked! Thanks!