eris icon indicating copy to clipboard operation
eris copied to clipboard

Folder Mapping Deprecation

Open Coolguy3289 opened this issue 3 years ago • 2 comments

Hi All,

We're using Eris 0.16.1 with Node v16.13.1, and when we start our process, we're getting the following in console originating directly from the Eris package: node:70288) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /project/node_modules/eris/package.json. Update this package.json to use a subpath pattern like "./*". (Use `node --trace-deprecation ...` to show where the warning was created)

Trying the basic fix by googling that deprecation (changing the export from "./" to "./*" ends up breaking eris with a bunch of "MODULE NOT FOUND" errors, so I figured I'd post this here to see if anyone has been working on a fix for the next release of eris.

Thanks, Coolguy

Coolguy3289 avatar Jan 27 '22 04:01 Coolguy3289

Probably inside package.json, need to updated from ./ to ./*, you can do it manually as well. image

rilysh avatar Jan 27 '22 05:01 rilysh

I tried that is what I meant. It just broke Eris all together

Coolguy3289 avatar Jan 27 '22 06:01 Coolguy3289