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

Path Monorepo #12

Open
enri90 opened this issue Sep 18, 2024 · 1 comment
Open

Path Monorepo #12

enri90 opened this issue Sep 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@enri90
Copy link

enri90 commented Sep 18, 2024

hi i'm using Turno Monorepo
on build "build": "vite build",
How do I make the paths compatible?

dist/assets.json
path mono repo not work on production

"../../../node_modules/.pnpm/@vidstack+react@1.12.10_@types+react@18.3.7_react@18.3.1/node_modules/@vidstack/react/prod/chunks/vidstack-9n99lW90.js": {
    "file": "assets/chunks/chunk-CIfB8Tk3.js",
    "name": "vidstack-9n99lW90",
    "src": "../../../node_modules/.pnpm/@vidstack+react@1.12.10_@types+react@18.3.7_react@18.3.1/node_modules/@vidstack/react/prod/chunks/vidstack-9n99lW90.js",
    "isDynamicEntry": true,
    "imports": [
      "_chunk-BLPm9oz8.js",
      "_chunk-8WOtoGE1.js",
      "../../../node_modules/.pnpm/@vidstack+react@1.12.10_@types+react@18.3.7_react@18.3.1/node_modules/@vidstack/react/prod/chunks/vidstack-krOAtKMi.js",
      "_chunk-CmrIWoG2.js",
      "_chunk-Bzxy6GxN.js",
      "_chunk-CEGs7XhP.js"
    ],
    "css": [
      "assets/static/style-286fb939.B6DZbHFi.css",
      "assets/static/src_css_style-df3a09ff.B239wdyT.css",
      "assets/static/components_player_styles_player-39c1d945.oRAeOJh2.css"
    ]
  },

packages login
path dynamicImports non valid for production

 "../../../packages/login/dist/partials/factor.js": {
    "file": "assets/chunks/chunk-DtvRLNa5.js",
    "name": "factor",
    "src": "../../../packages/login/dist/partials/factor.js",
    "isDynamicEntry": true,
    "imports": [
      "_chunk-Bzxy6GxN.js",
      "_chunk-CEGs7XhP.js",
      "_chunk-DOXlWk1U.js",
      "_chunk-BbbN34HB.js"
    ],
    "css": [
      "assets/static/style-286fb939.B6DZbHFi.css",
      "assets/static/src_css_style-df3a09ff.B239wdyT.css"
    ]
  },
"virtual:vike:pageConfigValuesAll:client:/pages/two-factor": {
    "file": "assets/entries/pages_two-factor.D0B201Wn.js",
    "name": "entries/pages/two-factor",
    "src": "virtual:vike:pageConfigValuesAll:client:/pages/two-factor",
    "isEntry": true,
    "isDynamicEntry": true,
    "imports": [
      "_chunk-Bzxy6GxN.js",
      "_chunk-DC1KwMXu.js",
      "_chunk-CEGs7XhP.js",
      "_chunk-CmrIWoG2.js",
      "_chunk-Cy1gT26O.js",
      "_chunk-BbbN34HB.js"
    ],
    "dynamicImports": [
      "../../../packages/login/dist/partials/factor.js"
    ],
    "css": [
      "assets/static/style-286fb939.B6DZbHFi.css",
      "assets/static/src_css_style-df3a09ff.B239wdyT.css"
    ],
    "assets": [
      "assets/static/favicon.a4Umf1JA.png"
    ]
  }
@brillout brillout added the bug Something isn't working label Sep 25, 2024
@brillout
Copy link
Member

Do you have this only when using vike-node? Can you provide a minimal reproduction?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants