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

Failed to load switches.vue #17

Open
imkimchi opened this issue Jun 19, 2018 · 2 comments
Open

Failed to load switches.vue #17

imkimchi opened this issue Jun 19, 2018 · 2 comments

Comments

@imkimchi
Copy link

It keeps failing to load switches component due to syntax error, no idea why this is not working.

{ /node_modules/vue-switches/src/switches.vue:1
(function (exports, require, module, __filename, __dirname) { <template>
                                                              ^

SyntaxError: Unexpected token <
    at new Script (vm.js:74:7)
    at createScript (vm.js:246:10)
    at Object.runInThisContext (vm.js:298:10)
    at Module._compile (internal/modules/cjs/loader.js:670:28)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Module.require (internal/modules/cjs/loader.js:650:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at r (/home/server2/1MM-apps/node_modules/vue-server-renderer/build.js:8330:16)
    at Object.<anonymous> (server-bundle.js:3677:18)
    at __webpack_require__ (webpack:/webpack/bootstrap 8f00aa7521ecf95414fa:25:0)
    at Object.<anonymous> (components/settings/Countdown.vue?32d3:1:0)
    at __webpack_require__ (webpack:/webpack/bootstrap 8f00aa7521ecf95414fa:25:0)
    at Object.<anonymous> (components/settings/Countdown.vue:1:0) statusCode: 500, name: 'SyntaxError' }
@JeffVa1
Copy link

JeffVa1 commented Jan 22, 2021

No worky.

@romainframe
Copy link

Adding this to NuxtJS config build did the trick for me

transpile: [/^vue-switches($|\/)/]

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

3 participants