Skip to content

Fix 'Cannot find module' error of meta.js when using local template #150

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

Merged
merged 1 commit into from
Aug 27, 2016
Merged

Fix 'Cannot find module' error of meta.js when using local template #150

merged 1 commit into from
Aug 27, 2016

Conversation

ktsn
Copy link
Member

@ktsn ktsn commented Aug 21, 2016

Possibly fix #140

The error happens when we use meta.js for a local template because the relative path for require(...) is relative to __dirname, not process.cwd()

@zigomir
Copy link
Contributor

zigomir commented Aug 27, 2016

Thanks @ktsn!

I tried this out and it helps to solve #140. I could simulate it on my machine.

@zigomir zigomir merged commit 5bbd73e into vuejs:master Aug 27, 2016
@ktsn ktsn deleted the fix-reading-local-meta branch August 27, 2016 14:15
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

Successfully merging this pull request may close these issues.

2 participants