Skip to content

Svuelte CLI errors out while conversion #1

Description

@sahrizvi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions