question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

upgrade to rc10,page styles cannot use in another page

See original GitHub issue

Environment

  • Operating System: Windows_NT
  • Node Version: v16.16.0
  • Nuxt Version: 3.0.0-rc.9
  • Nitro Version: 0.5.3
  • Package Manager: npm@8.6.0
  • Builder: vite
  • User Config: builder, experimental, runtimeConfig, css, app, nitro
  • Runtime Modules: -
  • Build Modules: -

Reproduction

rc8 : https://stackblitz.com/edit/github-crzvsj?file=nuxt.config.ts,app.vue rc10: https://stackblitz.com/edit/github-vuepdp?file=pages%2FpageB.vue,pages%2FpageA.vue,pages%2Findex.vue

Describe the bug

under rc8 i can use pageA style on pageB,but under rc10 can not . it seemed before rc9 page and compoent preload everywhere. is there any way to use style cross page?

Additional context

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
danielroecommented, Sep 17, 2022

For now, you can workaround by setting experimental.inlineSSRStyles to false.

I’m closing this issue as pages shouldn’t rely on styles defined in other pages - they are meant to be separate.

@g4w3l if you get a chance, I’d be very grateful of that new issue + reproduction…

1reaction
lukaszflorczakcommented, Sep 16, 2022

IMO the approach as shown in the example is incorrect and insecure.

If you have global styles keep them separate and load in nuxt.config.ts:

export default defineNuxtConfig({
  css: [
    '@/assets/styles/global.scss',
  ],
})

If you have some shared styles for page layout – create a component-wrapper with slots (or use layouts) and put styles inside.

Read more comments on GitHub >

github_iconTop Results From Across the Web

phpBB • [ABD] phpBB Arcade 1.0.RC10 - Page 382
I do not find any update info for templates or root in RC2,RC3,RC4 Thanks. Title: phpBB Arcade ... phpBB Arcade - prosilver style...
Read more >
The Net's Largest Vintage R/C Community - RC10Talk
You can use different screws and nuts, different turnbuckles, bell cranks, etc. The car can be completely different in wheelbase.
Read more >
Import goes down to RC10 - Page 2 - CamaroZ28.Com Message ...
I have a .25cc nitro quake Since I put a 3 shoe race clutch and thunder quake tires and wheels not much can...
Read more >
2010 Upz Rc10 - Page 3 - Hardboot Reviews
And these work on the principles similar to that of setting preload ... a great boot and the warmest "ski boot style boot"...
Read more >
Mid life crisis car (RC10) - Page 2 - AR15.COM
Is it possible to find the gear sets to build the Stealth tranny still? If so I could likely build up a fun...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found