jo3-l / obscenity

Robust, extensible profanity filter for NodeJS
MIT License
70 stars 2 forks source link

Package obscenity has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" #64

Closed Gabotron-ES closed 1 month ago

Gabotron-ES commented 2 months ago

Expected behavior

I installed this package via npm to use in my react native 0.68.5 app

Actual behavior

I get this error on my react native app:

Package obscenity has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /Users/gabriel/Desktop/proyectos/MyApp/node_modules/obscenity/package.json

Minimal reproducible example

npm install obscenity

Steps to reproduce

npm install obscenity

Additional context

My react native version:

"react-native": "0.68.5",

Node.js version

16.0.0

Obscenity version

0.2.0

Priority

Terms

jo3-l commented 1 month ago

Thanks for the report. I am not familiar with React Native, so an minimal project that I could clone would be very useful in tracking down this issue. (As far as I can see, in a new project that does not use React Native, the import works correctly so your current reproduction steps are not sufficient.)

jo3-l commented 1 month ago

Per my above comment:

As far as I can see, in a new project that does not use React Native, the import works correctly so your current reproduction steps are not sufficient.

I do not believe this issue represents a bug in Obscenity; it is more likely a configuration issue. That said, if you are willing to provide more details, please do feel free to reopen and I would happy to help investigate further.