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

Throwing error with template-based, single-file functional components #29

Closed
NathanKleekamp opened this issue Jun 26, 2018 · 0 comments
Closed

Comments

@NathanKleekamp
Copy link

Hello!

require-extension-hooks-vue version 1.0.0
vue version 2.5.16

With the addition of template-based functional components in Vue 2.5.0+, the script block does not seem to be required in .vue files. I get the following error, though, when I try to use these types of components with require-extension-hooks-vue.

/.../node_modules/require-extension-hooks-vue/src/index.js:68
    throw new Error(`Unable to read ${filename}: could not find a valid <script> tag`);
          ^
Error: Unable to read /.../DnTable.vue: could not find a valid <script> tag
    at getScriptPart (/.../node_modules/require-extension-hooks-vue/src/index.js:68:11)
    at Array.module.exports (/.../node_modules/require-extension-hooks-vue/src/index.js:184:22)
    at transpile (/.../node_modules/require-extension-hooks/src/hook.js:42:26)
    at hook (/.../node_modules/require-extension-hooks/src/hook.js:26:22)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/.../DnTable.spec.js:11:16)

Thank you!

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