-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Please check all that apply
- visual bug
- functional bug
- able to consistently reproduce
Expected Behavior
Importing Flagpack as a plugin should work.
Current Behavior
I get an error: Unexpected token '<'.
Possible Solution
This might be related with the SSR mode
Steps to Reproduce
- Create a nuxt project and select
SSR mode,Node.js hosting yarn add vue-flagpack- create
plugins/vue-flagpack.jsand paste Method A from the docs - Add it in the plugins array in
nuxt.config.jslike:plugins: ["~/plugins/vue-flagpack.js"]
Screenshots
Logs
See screenshot.
Context
I'm trying to add flags to a lang switcher, based on @nuxtjs/i18n.
Your Environment
- Version used: "vue-flagpack": "^1.0.1"
- Browser Name and version: Opera GX (Opera 73)
- Operating System and version (desktop or mobile): Windows 10 x64
- Nuxt: "nuxt": "^2.14.12",
- Link to your project: Private Gitlab repo
avrtau
Metadata
Metadata
Assignees
Labels
No labels
