sindresorhus / file-type

Detect the file type of a file, stream, or data
MIT License
3.64k stars 345 forks source link

When I download `file-type` into the webpack 3 project, running the error message requires installation `strtok3` #616

Closed cMing1997 closed 10 months ago

cMing1997 commented 10 months ago

The BUG behavior

 When I download `file-type` into the webpack 3 project, running the error message requires installation  `strtok3`
but, It is possible to downgrade the version to 10

Downloaded version:

    18/17

Runtime Environment

webpack:^3.6.0

Error Info

This dependency was not found:

* strtok3 in ./node_modules/file-type/index.js

To install it, you can run: npm install --save strtok3
Error from chokidar (D:\): Error: EBUSY: resource busy or locked, lstat 'D:\DumpStack.log.tmp'

Expect

If you are sure that the latest versions are required for the webpack version, it is expected to be explained in readme
sindresorhus commented 10 months ago

This is something you need to bring up no the Webpack issue tracker.

cMing1997 commented 9 months ago

This is something you need to bring up no the Webpack issue tracker.

But the strtok3 it's already inside node_modules ,The error will still be reported, no packet loss occurred When I run 'npm install-save Strtok 3' , an error is still reported, so I raise the issue