-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI unable to resolve Node Modules in Functions #4911
Comments
Thanks for checking! Unfortunately, this is still happening for me 🙁 The build error can be removed by moving I did a fresh clone myself, ran
|
Hmmm, I now also tried on my mac and also works. Maybe your npm cache is broken, but very unlikely. Can try Are you using the netlify-cli from the project? Or a global installed version and is this the latest version? |
Interesting. I tried in an Ubuntu VM I had set up previously, but never really used. It works correctly as expected. I tried: Thanks for looking into this. |
This is possibly related to: evanw/esbuild#2261 |
I changed
which is expected and also exactly why I was trying to use Not sure where to go from here because this doesn't appear to be:
Especially because this will most likely work correctly locally for all of these. What's interesting it, this was working perfectly fine until a few weeks ago - just before I stopped working on the project due to other priorities. Now that I'm back at this, I'm stuck. |
Maybe some folders are owned by root/different user? Or maybe disk access is limited for the shell you are running in? |
I tried Will try a reset tomorrow, I believe. |
I can confirm, resetting the device worked. Now we'll never know what had happened, but glad it's sorted. |
Describe the bug
I'm unable to run Netlify Functions using CLI. I keep getting messages of "Could not resolve" even though the modules are installed on my system. I tried creating a minimal reproduction of my setup and was able to reproduce it. Not sure what I'm missing.
Steps to reproduce
Repo: https://github.com/Hrishikesh-K/cli-test
After cloning and running
npm i
, try runningnpx netlify dev
. You can see messages in the console like:However, when running:
it works. So
esbuild
is able to bundle the file correctly.Configuration
Environment
The text was updated successfully, but these errors were encountered: