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 'coffee-script' 'toml' #35

Closed
arturi opened this issue Dec 27, 2016 · 1 comment
Closed

Cannot find module 'coffee-script' 'toml' #35

arturi opened this issue Dec 27, 2016 · 1 comment

Comments

@arturi
Copy link

arturi commented Dec 27, 2016

Hey, thanks for the awesome package! I love that I can parse/stringify both ways with it.

I have an encountered a problem when using gray-matter with Browserify for the browser:

Error: Cannot find module 'toml' from '/.../node_modules/gray-matter/lib'
Error: Cannot find module 'coffee-script' from '/.../node_modules/gray-matter/lib'

The issue is obviously resolved when coffee-script and toml are installed. If I understand correctly, Node supports dynamic requires here, while Browserify bundles everything right away. What could be the optimal solution? Maybe moving parsers out of the module and allowing the user to require/set his own? I guess PR #15 solves this.

Thanks!

@jonschlinkert
Copy link
Owner

gray-matter was refactored, coffee is no longer built-in. see the readme to learn how to add custom engines

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

No branches or pull requests

2 participants