You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i am starting the server i am getting this error @danielroe
`
ERROR [@vue/compiler-sfc] <script setup> cannot contain ES module exports. If you are using a previous version of <script setup>, please consult the updated RFC at vuejs/rfcs#227.
Environment
npm WARN config global
--global
,--local
are deprecated. Use--location=global
instead.RootDir: D:/project/Nuxt-tailwind-starter-main 11:50:23
Nuxt project info: 11:50:23
Windows_NT
v16.16.0
3.0.0-rc.11
0.5.4
npm@8.11.0
vite
-
-
-
👉 Report an issue: https://github.com/nuxt/framework/issues/new 11:50:23
👉 Suggest an improvement: https://github.com/nuxt/framework/discussions/new
👉 Read documentation: https://v3.nuxtjs.org
Reproduction
https://stackblitz.com/edit/nuxt-starter-gzlrja?file=app.vue
Describe the bug
When i am starting the server i am getting this error @danielroe
`
ERROR [@vue/compiler-sfc] <script setup> cannot contain ES module exports. If you are using a previous version of <script setup>, please consult the updated RFC at vuejs/rfcs#227.
D:/project/Nuxt-tailwind-starter-main/pages/contact.vue
81 | import 'swiper/css';
82 |
83 | export default {
| ^^^^^^^^^^^^^^^^
84 | components: {
| ^^^^^^^^^^^^^^^^^
85 | Swiper,
| ^^^^^^^^^^^^^
86 | SwiperSlide,
| ^^^^^^^^^^^^^^^^^^
87 | },
| ^^^^^^
88 | setup() {
| ^^^^^^^^^^^^^
89 | const onSwiper = (swiper) => {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
90 | console.log(swiper);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
91 | };
| ^^^^^^^^
92 | const onSlideChange = () => {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
93 | console.log('slide change');
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
94 | };
| ^^^^^^^^
95 | return {
| ^^^^^^^^^^^^^^
96 | onSwiper,
| ^^^^^^^^^^^^^^^^^
97 | onSlideChange,
| ^^^^^^^^^^^^^^^^^^^^^^
98 | };
| ^^^^^^^^
99 | },
| ^^^^^^
100| };`
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: