tlovett1 / alexa-skill-test

Test Alexa skills through a local Express server.
43 stars 9 forks source link

Can't resolve babel-loader #2

Closed seanfisher closed 6 years ago

seanfisher commented 7 years ago

I installed the tool globally and when I run it in my lambda folder I get:

sean$ alexa-skill-test Alexa Skill Test Skill: my-skill Open http://localhost:3000 in your browser Hash: 61f2d9554b289fa45f94 Version: webpack 2.2.1 Time: 45ms

ERROR in Entry module not found: Error: Can't resolve 'babel-loader' in '/Users/sean/prog/my-skill' webpack: Failed to compile.

The website comes up as a blank screen.

Any ideas? Does this library really require me to install babel-loader into my application for it to work?

tlovett1 commented 7 years ago

Hmmm I'm not able to reproduce. Can you debug?

zzolo commented 7 years ago

I get the same thing. I am using the library locally, instead of globally.

node v6.10.1
npm 3.10.10
zzolo commented 7 years ago

So, if I install the module globally, it works. I don't see anything that easily explains why this would behave this way. It would be nice to install this locally and use something like ./node_modules/.bin/alexa-skill-test to run it.

alopix commented 7 years ago

I get something similar but with a lot of dependencies. I installed it globally though…

ERROR in /usr/local/lib/~/alexa-skill-test/~/react-dom/lib/traverseAllChildren.js Module not found: Error: Can't resolve 'fbjs/lib/warning' in '/usr/local/lib/node_modules/alexa-skill-test/node_modules/reac t-dom/lib' @ /usr/local/lib/~/alexa-skill-test/~/react-dom/lib/traverseAllChildren.js 21:14-41 @ /usr/local/lib/~/alexa-skill-test/~/react-dom/lib/ReactChildReconciler.js @ /usr/local/lib/~/alexa-skill-test/~/react-dom/lib/ReactMultiChild.js @ /usr/local/lib/~/alexa-skill-test/~/react-dom/lib/ReactDOMComponent.js @ /usr/local/lib/~/alexa-skill-test/~/react-dom/lib/ReactDefaultInjection.js @ /usr/local/lib/~/alexa-skill-test/~/react-dom/lib/ReactDOM.js @ /usr/local/lib/~/alexa-skill-test/~/react-dom/index.js @ /usr/local/lib/~/alexa-skill-test/src/index.js

acucciniello commented 7 years ago

I get the same thing here is my error message:

$ alexa-skill-test
Alexa Skill Test
Skill: alphabet-teacher
Open http://localhost:3000 in your browser
Hash: 61f2d9554b289fa45f94
Version: webpack 2.6.1
Time: 51ms

ERROR in Entry module not found: Error: Can't resolve 'babel-loader' in '/Users/Antonio/Coding/alphabet-teacher'
webpack: Failed to compile.

it happens globally as well when trying to install and run locally.

I am using: Node v8.0.0.0 Yarn 0.24.6

gyandeeps commented 7 years ago

Had the same issue when i installed locally.

Temp solution

cd ./node_modules/alexa-skill-test
npm install
cd ../..
./node_modules/.bin/alexa-skill-test

This would work but its painful.

tlovett1 commented 7 years ago

Would love a fixing PR :/

bencarter78 commented 7 years ago

I was having the same issue and found the following to work for me (slightly different from @gyandeeps)

cd node/modules/alexa-skill-test
npm install
cd ../..
./node_modules/alexa-skill-test/bin/start.js
tlovett1 commented 6 years ago

This should be fixed now.

daanzu commented 6 years ago

Had a similar problem involving bootstrap-sass just now with latest version. @gyandeeps solution solved it.