Closed hungtcs closed 2 years ago
I have the same issue !!!
I am now back to 3.0.2, and 3.0.2 uses an external npm package
Looks like forgot to modify the build command
@pbojinov
+1 Same issue. Production borken 🤦
+1
maybe best to remove babel from this repo? don't see any features that need transpiling these days
+1
I'll fix this tonight, sorry everyone
maybe best to remove babel from this repo? don't see any features that need transpiling these days
That's a good point. I had added Babel over 4 years ago when none of the ES6 features were in Node. It's probably not needed.
Released 3.2.0 with an updated build file. Let me know if this works for everyone.
Upgrading to 3.2.0 gives me: Error: Cannot find module '\node_modules\request-ip\lib\index.js'. Please verify that the package.json has a valid "main" entry
I have tried deleted node_modules and reinstall but still the same error.
Need to include lib folder in package.json files
entry.
You can use npm pack
or npm publish --dry-run
run to verify the package.
$ ll node_modules/request-ip
Permissions Size User Group Date Modified Git Name
.rw-r--r-- 1.1k hungtcs staff 7 7 10:33 -I LICENSE.md
.rw-r--r-- 1.8k hungtcs staff 7 7 10:33 -I package.json
.rw-r--r-- 3.1k hungtcs staff 7 7 10:33 -I README.md
Thank you for that! Just added that to 3.3.0 and tested it locally. It's working without throwing any errors.
version
3.1.0
missingis.js
in dist folder