Closed woswos2018 closed 4 years ago
Please update to v0.2.2
.
From today morning my jenkins build is getting failed and showing below error message. I dont understand why its getting failed. till yesterday its worked properly. Is there any change in react-dropzone..!! I am using "react-dropzone": "^8.2.0" version.
`Creating an optimized production build... Failed to compile.
./node_modules/react-dropzone/dist/es/index.js Cannot find module: 'file-selector'. Make sure this package is installed.
You can install this package by running: npm install file-selector.
[91mnpm ERR! code ELIFECYCLE
[0m[91mnpm[0m[91m ERR! errno 1
[0m[91mnpm ERR! seasofNail@0.1.0 build: react-scripts build
npm ERR! Exit status 1
[0m[91mnpm ERR!
npm ERR! Failed at the seasofNail@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[0m[91m
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-10-23T09_58_52_623Z-debug.log
[0mThe command '/bin/sh -c npm run build' returned a non-zero code: 1
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE`
This should have been fixed with the v0.1.17 release. Please try it and let me know.
Yesterday I have upgraded my "react-dropzone": "^8.2.0" version to "10.2.1" and its build successfully. But still I have not understand why build was failing and giving the above error for version "8.2.0".
Yesterday I have upgraded my "react-dropzone": "^8.2.0" version to "10.2.1" and its build successfully. But still I have not understand why build was failing and giving the above error for version "8.2.0".
The file-selector lib was published with missing files. Should be fixed now.
okay, thanks a ton.
This should be ok now, so gonna close it.
Do you want to request a feature or report a bug?
What is the current behavior?
Some projects refer to file-selector by specifying semver like
^0.1.12
(e.g. https://github.com/react-dropzone/react-dropzone/blob/master/package.json). v0.1.16 is missing required dist folder.The same fixes done on 0.2.x (https://github.com/react-dropzone/file-selector/commit/9b57a1224e2946529348cd2099e6c1928ed1b0f8#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519, https://github.com/react-dropzone/file-selector/commit/9b3bbb124d7adfeb9f29b9c6c0eb35353fe420f0) would be required for these clients.
What is the expected behavior?
Required folders should be included.