Skip to content

Error: ENOENT: no such file or directory #4

@carloscalage

Description

@carloscalage

Hey guys!

I just started to use this package on my project. I installed using pnpm install react-hook-mask , implemented and tested on my component. Everything went well and worked as expected, but after that I got 9 warnings like this one on my terminal:

...
WARNING in ../../node_modules/.pnpm/react-hook-mask@1.1.18_react-dom@18.2.0_react@18.2.0/node_modules/react-hook-mask/dist/esm/utils/mask.js
Module Warning (from ../../node_modules/.pnpm/source-map-loader@3.0.2_webpack@5.88.2/node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/..../node_modules/.pnpm/react-hook-mask@1.1.18_react-dom@18.2.0_react@18.2.0/node_modules/react-hook-mask/src/utils/mask.ts' file: Error: ENOENT: no such file or directory, open '/..../node_modules/.pnpm/react-hook-mask@1.1.18_react-dom@18.2.0_react@18.2.0/node_modules/react-hook-mask/src/utils/mask.ts'

webpack compiled with 9 warnings (3d483ff870fdd4f9)

I checked and it's trying to reach a folder at react-hook-mask/src and looking at this location I don't have this folder, just dist/.

So I don't know if this is something with me as I'm the only one having this problem here or maybe it's a bug with pnpm or NX. Can someone give me some help? I tried removing and installing again or just using pnpm install and still having this problem...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions