question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module 'yoga-layout'

See original GitHub issue

Hi.

(Sorry for the glitches in English, I had to use the translator)

By performing the quick-start of the documentation, I came across the error below.

>npm run start

> teste-proton@0.0.1 start c:\backup\projetos\javascript\teste-proton
> babel-node index.js

module.js:540
    throw err;
    ^

Error: Cannot find module 'yoga-layout'
    at Function.Module._resolveFilename (module.js:538:15)
    at Function.Module._load (module.js:468:25)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (c:\backup\projetos\javascript\teste-proton\node_modules\proton-native\bin\components\View.js:23:19)
    at Module._compile (module.js:643:30)
    at Module._extensions..js (module.js:654:10)
    at Object.require.extensions.(anonymous function) [as .js] (c:\backup\projetos\javascript\teste-proton\node_modules\babel-register\lib\node.js:152:7)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! teste-proton@0.0.1 start: `babel-node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the teste-proton@0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\david\scoop\persist\nodejs-lts\cache\_logs\2018-04-04T17_28_14_560Z-debug.log
{
  "name": "teste-proton",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node_modules/.bin/babel-node index.js",
    "build": "node_modules/.bin/babel index.js -d bin/",
    "package-linux": "bash ./scripts/appimage.sh"
  },
  "dependencies": {
    "babel-cli": "^6.26.0",
    "babel-preset-env": "^1.6.1",
    "babel-preset-react": "^6.24.1",
    "babel-preset-stage-0": "^6.24.1",
    "proton-native": "^1.0.17"
  }
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kusti8commented, Apr 4, 2018

Yeah, I published the wrong branch. It’s fixed now.

0reactions
mischniccommented, Apr 4, 2018

I guess a typo…

Read more comments on GitHub >

github_iconTop Results From Across the Web

gatsby production build throwing yoga-layout-prebuilt module ...
Built will be success without any error. Actual result. Now throwing error as. $ gatsby build 11:55:23 AM: /opt/build/repo/node_modules/yoga ...
Read more >
yoga-layout - npm
Yoga is a cross-platform layout engine enabling maximum collaboration within your team by implementing an API many designers are familiar ...
Read more >
Gatsby - cannot find module react - Stack Overflow
Error : Cannot find module 'react'. I was looking for some advices in web but people are getting this message after installing some...
Read more >
Error: Cannot find module 'gatsby-plugin-utils/polyfill-remote-file'
Error: Cannot find module 'gatsby-plugin-utils/polyfill-remote-file'. After updating Gatsby from 3.0.4 to 4.12.1 I got the following error ...
Read more >
Adding bootstrap-icons to Sage project causes Bud to throw ...
bud clean /home/xxx/themes/dev-alpha/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53 throw ex; ^ Error: Cannot find ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found