Commit 054d3ac
committed
fix: import global CSS only in App component
LIIKUNTA-768.
Using Turbopack makes it clear that global stylesheets can only be
imported in App component.
When running app with a Turbopack, a following warning is printed in
terminal:
```shell
Global CSS cannot be imported from files other than your Custom <App>.
Due to the Global nature of stylesheets, and to avoid conflicts, Please
move all first-party global CSS imports to pages/_app.js. Or convert the
import to Component-Level CSS (CSS Modules).
```1 parent 3ad40cc commit 054d3ac
4 files changed
Lines changed: 3 additions & 2 deletions
File tree
- apps
- events-helsinki/src/pages
- hobbies-helsinki/src/pages
- sports-helsinki/src/pages
- packages/components/src/app
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
0 commit comments