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

Svuelte CLI errors out while conversion #1

Open
sahrizvi opened this issue Mar 11, 2020 · 0 comments
Open

Svuelte CLI errors out while conversion #1

sahrizvi opened this issue Mar 11, 2020 · 0 comments

Comments

@sahrizvi
Copy link

sahrizvi commented Mar 11, 2020

Hi Denis,

Thank you for creating this, it's a fun tool. While trying it out, svuelte ran into some errors and did not produce the .svelte file due to those.

$ svuelte Test.vue
Warning: in default export, components is an unknown property, ignoring it.
Warning: in default export, data property is not an object expression, ignoring it.
Warning: unexpected computed classroom_mode declaration: classroom_mode: function () {
  return this.$store.state.classroom_mode;
}, ignoring it.
Warning: in default export, beforeRouteLeave is an unknown property, ignoring it.
{yellow Warning: in default export, } {greenBright created} is not a function, ignoring it.}
/usr/local/lib/node_modules/svuelte/node_modules/chalk/source/templates.js:115
				throw new Error('Found extraneous } in Chalk template literal');
				^

Error: Found extraneous } in Chalk template literal
    at /usr/local/lib/node_modules/svuelte/node_modules/chalk/source/templates.js:115:11
    at String.replace (<anonymous>)
    at module.exports (/usr/local/lib/node_modules/svuelte/node_modules/chalk/source/templates.js:105:12)
    at chalkTag (/usr/local/lib/node_modules/svuelte/node_modules/chalk/source/index.js:211:9)
    at chalk.template (/usr/local/lib/node_modules/svuelte/node_modules/chalk/source/index.js:39:38)
    at Object.<anonymous> (/usr/local/lib/node_modules/svuelte/index.js:398:32)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:643:32)
    at Function.Module._load (internal/modules/cjs/loader.js:556:12)

I have found a fix to this. Will submit a PR soon.

@sahrizvi sahrizvi mentioned this issue Mar 11, 2020
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

1 participant