-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Unexpected token '.' #5904
Comments
Hello @Vitaminaq. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
Sorry, it's only now |
It's an edge case in import axios, { AxiosInstance } from 'axios';
class LocalAxios {
public axios: AxiosInstance;
} The class public field |
src/stores/index.ts import Vue from 'vue';
import Vuex from 'vuex';
import { storeModules } from 'stores/storeAccessor';
Vue.use(Vuex);
export const storeOptions = {
modules: storeModules,
};
export * from 'stores/storeAccessor';
const createStore = () => new Vuex.Store(storeOptions);
export default createStore; logs
ssr transformed const __vite_ssr_import_0__ = await __vite_ssr_import__("vue");
const __vite_ssr_import_1__ = await __vite_ssr_import__("vuex");
const __vite_ssr_import_2__ = await __vite_ssr_import__("/src/stores/storeAccessor.ts");
__vite_ssr_import_0__.default.use(__vite_ssr_import_1__.default);
const storeOptions = {
modules: __vite_ssr_import_2__.storeModules
};
Object.defineProperty(__vite_ssr_exports__, "storeOptions", { enumerable: true, configurable: true, get(){ return storeOptions }});
const __vite_ssr_import_3__ = await __vite_ssr_import__("/src/stores/storeAccessor.ts");
__vite_ssr_exportAll__(__vite_ssr_import_3__);
const createStore = () => new __vite_ssr_import_1__.default.Store(storeOptions);
__vite_ssr_exports__.default = createStore; I am experiencing the same issue. |
Closing as I confirmed that this was fixed by #6261. |
Describe the bug
Updated vite version to 2.6.14,and vue version to 3.2.23,This error occurs in the development environment,Package and then run, everything will be normal
Reproduction
Company project, none
System Info
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: