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

fix(icons-page): prevent file not found error #184

Merged
merged 2 commits into from
Sep 2, 2020

Conversation

haan123
Copy link
Contributor

@haan123 haan123 commented Aug 12, 2020

Fix nuxt-community#120

Check if nuxt-svg-sprite-icons-list.vue is existing then call extendRoutes else re-try

@haan123
Copy link
Contributor Author

haan123 commented Aug 26, 2020

Hi @farnabaz

Could you take a look on this?

@farnabaz
Copy link
Collaborator

farnabaz commented Sep 1, 2020

Using set timeout is hacky and this may fail in large projects. I'm going to change this part a little.
I appreciate if you confirm the fix after my changes

@haan123
Copy link
Contributor Author

haan123 commented Sep 1, 2020

Yep, it is hakcy but Settimeout wil be called recursively ultil the file is created so i think it is safe in this way, but your fix is better, please merge it soon :D

@farnabaz farnabaz changed the title Fix ENOENT: no such file or directory, open '.../.nuxt/nuxt-svg-sprite-icons-list.vue fix(icons-page): prevent file not found error Sep 2, 2020
@farnabaz farnabaz merged commit f43811c into nuxt-modules:master Sep 2, 2020
@farnabaz
Copy link
Collaborator

farnabaz commented Sep 2, 2020

Thank you

farnabaz added a commit that referenced this pull request Sep 2, 2020
Co-authored-by: Farnabaz <farnabaz@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants