Skip to content
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

Cannot find module './Button' #45

Closed
obfuscatedgeek opened this issue Nov 30, 2017 · 11 comments
Closed

Cannot find module './Button' #45

obfuscatedgeek opened this issue Nov 30, 2017 · 11 comments
Labels

Comments

@obfuscatedgeek
Copy link

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

@avigoldman
Copy link
Contributor

Hey @obfuscatedgeek 👋 Would you mind giving some of your environment information. Node version and OS would be a good start.

@obfuscatedgeek
Copy link
Author

Hi @avigoldman thanks for quick response.

It fails on my docker environment running NodeJS 8.1.0

@avigoldman
Copy link
Contributor

Hmmm ok...what OS?

@avigoldman
Copy link
Contributor

Looks like the button file is named button.js but it is being included as ./Button. Good chance that is the issue. Can you do an install from the button-case-issue branch, and see if it works properly?

@obfuscatedgeek
Copy link
Author

Cool. Will check in an hour and update you.

@avigoldman avigoldman added the bug label Nov 30, 2017
@obfuscatedgeek
Copy link
Author

OK back but no progress.

I am trying to install from the branch but npm keeps failing saying Missing package name :(

@avigoldman
Copy link
Contributor

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

@obfuscatedgeek
Copy link
Author

Sweet! that works. Able to run from CLI

@avigoldman
Copy link
Contributor

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

@avigoldman
Copy link
Contributor

You should be good to install 1.1.3! Let me know if you hit any other issues 😄

@obfuscatedgeek
Copy link
Author

Awesome work mate! Works perfectly! Thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants