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

TypeError: Cannot read property 'all' of undefined #4

Closed
mhulse opened this issue Jul 11, 2018 · 4 comments
Closed

TypeError: Cannot read property 'all' of undefined #4

mhulse opened this issue Jul 11, 2018 · 4 comments

Comments

@mhulse
Copy link
Contributor

mhulse commented Jul 11, 2018

Hello,

Thanks for this code!

I have this function:

import tipograph from 'tipograph';
makePrettyItem: function(item) {
	return tipograph.Replace.all( ... );
},

I am getting:

		return _tipograph2.default.Replace.all( ... );
		                                   ^

TypeError: Cannot read property 'all' of undefined

I can't seem to figure out how to migrate this old syntax to the new ...

Can you point me in the right direction?

@pnevyk
Copy link
Owner

pnevyk commented Jul 11, 2018

Hi @mhulse

thanks for the interest. There should have been a guide, sorry for the inconvenience. So I wrote one. In case that something isn't clear yet, feel free to ask.

I found a bug in custom rules definition and missing docs when I was writing this guide. So thank you for the issue, it helped to improve this library :)

@mhulse
Copy link
Contributor Author

mhulse commented Jul 11, 2018

@pnevyk WOW! Thank you so much for the awesome upgrade guide!!!! I really appreciate your help and the awesome code!

Have a great day!

@mhulse mhulse closed this as completed Jul 11, 2018
@mhulse
Copy link
Contributor Author

mhulse commented Jul 11, 2018

Not sure if I should open a new issue or do a PR for this, but I noticed a spelling error in your main README.md:

https://github.com/pnevyk/tipograph/blob/e79850ff6fa3733331d7ea4ed7501a836e09415b/README.md#installation

“In brower”

Let me know if you would like me to do a PR; I totally don’t mind.

Thanks again!

@pnevyk
Copy link
Owner

pnevyk commented Jul 11, 2018

@mhulse Sure, I will gladly accept your pull request. All help is very appreciated. If you need any help, just let me know (because I don't have contributing guide either... but I will probably write one).

For this particular PR, just be aware that the content of the README.md file actually lays in .readme.md since readme is generated from it. So you need to update .readme.md file, and build the actual readme by npm run doc, and commit both files. Thanks for you interest and help!

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