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 './Button'

See original GitHub issue

I am getting this error since today

Error: Cannot find module './Button'
           at Function.Module._resolveFilename (module.js:536:15)
           at Function.Module._load (module.js:466:25)
           at Module.require (module.js:579:17)
           at require (internal/module.js:11:18)
           at Object.<anonymous> (/usr/src/app/node_modules/@heml/elements/build/index.js:68:15)
           at Module._compile (module.js:635:30)
           at Object.Module._extensions..js (module.js:646:10)
           at Module.load (module.js:554:32)
           at tryModuleLoad (module.js:497:12)
           at Function.Module._load (module.js:489:3)
           at Module.require (module.js:579:17)
           at require (internal/module.js:11:18)
           at Object.<anonymous> (/usr/src/app/node_modules/heml/build/index.js:126:17)
           at Module._compile (module.js:635:30)
           at Object.Module._extensions..js (module.js:646:10)
           at Module.load (module.js:554:32)

Was getting error on the previous version ^1.0.2-0. Upgraded to the new version today and still the same error, any clues ?

Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
avigoldmancommented, Nov 30, 2017

Awesome! I’ll merge that in and push out a patch

1reaction
avigoldmancommented, Nov 30, 2017

Whoops, my bad! I didn’t think it through. Here are the steps to install from the repo.

git clone https://github.com/SparkPost/heml
cd heml
npm install && npm run bootstrap && npm run build

Then you should be able to run the CLI like so (from that directory) ./packages/heml/build/bin/heml.js build my-template.heml

Read more comments on GitHub >

github_iconTop Results From Across the Web

React,Storybook - TS2307: Cannot find module 'Button' or its ...
I have pure React project (with one Button ...
Read more >
Fixing The "Cannot Find Module" Error In TypeScript
The first thing to fix the "cannot find module" error in TypeScript is to ensure that the package is installed on your system....
Read more >
How to use CSS Modules with TypeScript and webpack
You'll get an error: “Cannot find module './Button.css'”. There are several ways to fix that. The easy way. You can bypass TypeScript import...
Read more >
Fix Global Installs Not Working | "Cannot find module" error FIX
Getting " Cannot find module " after installing something globally (with -g)? Well, this video shows you how to fix global package/module ...
Read more >
[SOLVED] Cannot find module 'Module name" React js/Next js ...
Hello guys today in this video i'll show you to fix the error " Cannot find module...etc' follow the video above.Don't forget to...
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