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

Error on build #2

Closed
eugenioclrc opened this issue Jan 6, 2021 · 3 comments
Closed

Error on build #2

eugenioclrc opened this issue Jan 6, 2021 · 3 comments

Comments

@eugenioclrc
Copy link

Weird error while building;

Could not resolve './_app/routes/global.js' from .svelte/build/unoptimized/server/app.js

Captura de pantalla de 2021-01-06 12-29-14

@meigo
Copy link

meigo commented Jan 7, 2021

Quick workaround would be to move global.pcss to components folder and update $layout.svelte

import "$components/global.pcss";

Or put it somewhere else and update snowpack config.

I like tailwind but v2 seems to have some performance issues: tailwindlabs/tailwindcss#2820
I tested similar setup with tailwind v1.9.6 ( can't use darkMode, @apply with pseudo classes etc) and transpiling was about 3x faster.
So it kind of steals the speed advantage that snowpack gives you :)

@eugenioclrc
Copy link
Author

I think that this has work for me;
import "./_global.pcss";

Im seeing some perf issues too :(

@dansvel
Copy link
Owner

dansvel commented Feb 1, 2021

sorry for slow respon,,

yeah, i use _global.pcss

and i already deploy on netlify,,

so for this building, i think i already fix it my way,,

@dansvel dansvel closed this as completed Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants