Comments (9)
πErmm, because of past negative experiences with Yarn, I decided to delete node_modules/
and yarn.lock
and try it all again with npm
.
npm install
npm start
And not it's all running as expected. So weird!
Would love it anyone could try and replicate this for me though.
from create-react-app-lambda.
@sw-yx I see. You know what, I honestly don't think it's anything to do with this. I'm gonna continue to debug it and raise the issues with the corresponding libraries.
Thanks for this man! π
from create-react-app-lambda.
thanks for the report! i cannot replicate this. using yarn
works and clicking Call Lambda
works as expected. what version of yarn are you using? i've got yarn 1.12.1
and node v10.13.0
.
from create-react-app-lambda.
@sw-yx hey! I've got:
yarn
-1.3.2
node
-10.10.0
I've upgraded yarn
to 1.12.1
and I after running yarn
I get this:
I've now upgraded node
to 11.3.0
and I get the same error as above βοΈ
Update
I deleted yarn.lock
and ran yarn
again and it now works! π
from create-react-app-lambda.
yea flatmap caused problems for me today too :( closing since it seems resolved.
from create-react-app-lambda.
Hey, weirdly enough it's all happening again π’
~/Projects/playground/create-react-app-lambda master β
β· yarn start:lambda
yarn run v1.12.3
$ netlify-lambda serve src/lambda
netlify-lambda: Starting server
Lambda server is listening on 9000
Unhandled rejection Error: Cannot find module '/Users/peduarte/Projects/playground/create-react-app-lambda/lambda/hello'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
at Function.resolve (internal/modules/cjs/helpers.js:32:19)
at Object.clearCache (/Users/peduarte/Projects/playground/create-react-app-lambda/node_modules/netlify-lambda/lib/serve.js:111:36)
at /Users/peduarte/Projects/playground/create-react-app-lambda/node_modules/netlify-lambda/bin/cmd.js:38:16
at Array.forEach (<anonymous>)
at Watching.handler (/Users/peduarte/Projects/playground/create-react-app-lambda/node_modules/netlify-lambda/bin/cmd.js:37:32)
at compiler.hooks.done.callAsync (/Users/peduarte/Projects/playground/create-react-app-lambda/node_modules/netlify-lambda/node_modules/webpack/lib/Watching.js:98:9)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/peduarte/Projects/playground/create-react-app-lambda/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook (/Users/peduarte/Projects/playground/create-react-app-lambda/node_modules/tapable/lib/Hook.js:154:20)
at Watching._done (/Users/peduarte/Projects/playground/create-react-app-lambda/node_modules/netlify-lambda/node_modules/webpack/lib/Watching.js:97:28)
at onCompiled (/Users/peduarte/Projects/playground/create-react-app-lambda/node_modules/netlify-lambda/node_modules/webpack/lib/Watching.js:47:18)
at hooks.afterCompile.callAsync.err (/Users/peduarte/Projects/playground/create-react-app-lambda/node_modules/netlify-lambda/node_modules/webpack/lib/Compiler.js:552:14)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/peduarte/Projects/playground/create-react-app-lambda/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook (/Users/peduarte/Projects/playground/create-react-app-lambda/node_modules/tapable/lib/Hook.js:154:20)
at compilation.seal.err (/Users/peduarte/Projects/playground/create-react-app-lambda/node_modules/netlify-lambda/node_modules/webpack/lib/Compiler.js:549:30)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/peduarte/Projects/playground/create-react-app-lambda/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
With node - v11.3.0
and yarn - 1.12.3
.
It also doesn't seem to work with npm
anymore:
~/Projects/playground/create-react-app-lambda master β
β· npm install
npm WARN deprecated [email protected]: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
> [email protected] install /Users/peduarte/Projects/playground/create-react-app-lambda/node_modules/fsevents
> node install
node-pre-gyp WARN Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-node-v67-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v67 ABI, unknown) (falling back to source compile with node-gyp)
SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
In file included from ../fsevents.cc:6:
../../nan/nan.h:1064:44: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
^
/Users/peduarte/.node-gyp/11.3.0/include/node/v8.h:2537:3: note: 'ToString' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version",
^
/Users/peduarte/.node-gyp/11.3.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
../fsevents.cc:63:6: warning: field 'async_resource' will be initialized after field 'lockStarted' [-Wreorder]
: async_resource("fsevents:FSEvents"), lockStarted(false) {
^
2 warnings generated.
SOLINK_MODULE(target) Release/fse.node
COPY /Users/peduarte/Projects/playground/create-react-app-lambda/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node
TOUCH Release/obj.target/action_after_build.stamp
Oh man having so many issues with npm/yarn recently π
I'm surprised you can't replicate it though! Did you try removing node_modules
and yarn.lock
?
from create-react-app-lambda.
i didn't have to, i cloned this repo on a fresh machine and it "just worked".
leaving this open for now incase someone else can replicate
from create-react-app-lambda.
i didn't have to, i cloned this repo on a fresh machine and it "just worked".
leaving this open for now incase someone else can replicate
I'm having this issue as well... so when you tried on a "fresh" (different?) machine, it worked? so it was just on the computer you were working on, you think?
from create-react-app-lambda.
@kmalillos feel free to open a new issue, i think this one getting a bit crowded.
from create-react-app-lambda.
Related Issues (20)
- Getting Error with fresh clone: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined HOT 2
- Is `babel-loader` dependency needed? HOT 1
- Can't build:lambda once ejected HOT 4
- Couldn't find any versions for "flatmap-stream" that matches "0.1.1" HOT 3
- Error occured while trying to proxy to: localhost:3000/hello HOT 27
- Chuck Norris Jokes are inappropriate HOT 3
- hyperledger error HOT 2
- Unable to deploy; Error while deploying functions HOT 6
- Cannot get proxy working locally. HOT 1
- No setupProxy.js file in repo? HOT 3
- Functions are not called on localhost HOT 8
- Throws error about missing yarn HOT 1
- Neither of the buttons work HOT 3
- useProxy.js not working - new code provided
- [security] Enforce Branch Protections
- Instructions are conflicting and out of date HOT 3
- error: lambda functions are not working in localhost HOT 1
- babel-loader HOT 1
- WORKING HERE
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-react-app-lambda.