vuejs / vuex

🗃️ Centralized State Management for Vue.js.
https://vuex.vuejs.org
MIT License
28.42k stars 9.58k forks source link

Vuex dist/vuex.cjs.js #2147

Closed camohub closed 2 years ago

camohub commented 2 years ago

Version

4.0.2

Reproduction link

github.com

Steps to reproduce

{
    "name": "myApp",
    "version": "1.0.0",
    "private": true,
    "scripts": {
        "dev": "nuxt --port 8080",
        "build": "nuxt build",
        "start": "nuxt start",
        "generate": "nuxt generate",
        "lint:js": "eslint --ext \".js,.vue\" --ignore-path .gitignore .",
        "lint": "yarn lint:js"
    },
    "dependencies": {
        "@googlemaps/google-maps-services-js": "^3.3.1",
        "@gtm-support/vue2-gtm": "^1.2.0",
        "@mdi/font": "^6.4.95",
        "@nuxtjs/axios": "^5.13.6",
        "@nuxtjs/i18n": "^7.1.0",
        "@nuxtjs/proxy": "^2.1.0",
        "@turf/circle": "^6.5.0",
        "@turf/helpers": "^6.5.0",
        "@turf/points-within-polygon": "^6.5.0",
        "@turf/polygonize": "^6.5.0",
        "@turf/simplify": "^6.5.0",
        "@vue/runtime-dom": "^3.2.21",
        "chart.js": "^3.6.0",
        "cookieparser": "^0.1.0",
        "core-js": "^3.19.1",
        "fast-equals": "^2.0.3",
        "html2canvas": "^1.4.0",
        "js-cookie": "^3.0.1",
        "leaflet": "^1.7.1",
        "leaflet-gesture-handling": "^1.2.2",
        "leaflet.gridlayer.googlemutant": "^0.13.4",
        "nanoid": "^3.1.30",
        "nuxt": "^2.15.8",
        "nuxt-buefy": "^0.4.11",
        "nuxt-i18n": "^6.28.1",
        "rfdc": "^1.3.0",
        "vue-advanced-cropper": "^1.8.2",
        "vue-braintree": "^2.1.0",
        "vue-chart-3": "^0.5.11",
        "vue-debounce": "^3.0.1",
        "vue-google-oauth2": "^1.5.8",
        "vue-intersect-directive": "^1.1.1",
        "vue-lazyload": "^1.3.3",
        "vue2-leaflet": "^2.7.1",
        "vue2-leaflet-googlemutant": "^2.0.0",
        "vue2-leaflet-markercluster": "^3.1.0",
        "vuex-persist": "^3.1.3",
        "vuex-router-sync": "^5.0.0",
        "vuex-stores": "^1.0.0",
        "x5-gmaps": "0.4.5"
    },
    "devDependencies": {
        "@babel/eslint-parser": "^7.16.0",
        "@nuxtjs/composition-api": "^0.29.3",
        "@nuxtjs/eslint-config": "^7.0.0",
        "@nuxtjs/eslint-module": "^3.0.2",
        "babel-helpers": "^6.24.1",
        "eslint": "^8.1.0",
        "eslint-config-prettier": "^8.3.0",
        "eslint-plugin-nuxt": "^3.0.0",
        "prettier": "^2.4.1",
        "sass": "^1.43.4",
        "sass-loader": "10"
    }
}

What is expected?

I have a Nuxt app and there is dependency to Vuex. I can see it in node_modules and the directory structure have something like dist/vuex.cjs.js which contains the code which cause me the problem. That it my local repository. But as I see in the Github repo the is no dist/vuex.cjs.js stricture. How is it possible? Dont understand it. The version is 4.0.2. Can somebody explain it to me? Thanks a lot.

What is actually happening?

Thanks a lot.

MansourWolou commented 2 years ago

did u find a solution ?

yyx990803 commented 2 years ago

Files in dist are built files that are only created when publishing, but not considered source code.