You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
polka() // You can also use Express
.use(
compression({ threshold: 0 }),
sirv('static', { dev }),
sapper.middleware()
)
.listen(PORT, err => {
if (err) console.log('error', err);
});
I get the following warnings: • client Circular dependency: src\node_modules\@sapper\app.mjs -> src\node_modules\@sapper\internal\App.svelte -> src\routes\_layout.svelte -> src\node_modules\@sapper\app.mjs • server Circular dependency: src\routes\_layout.svelte -> src\node_modules\@sapper\app.mjs -> src\node_modules\@sapper\internal\App.svelte -> src\routes\_layout.svelte Circular dependency: src\routes\_layout.svelte -> src\node_modules\@sapper\app.mjs -> src\node_modules\@sapper\internal\manifest-client.mjs -> src\routes\_layout.svelte ✔
The text was updated successfully, but these errors were encountered:
I have two small things...
like this:
import sirv from 'sirv';
import polka from 'polka';
import compression from 'compression';
import * as sapper from '@sapper/server';
import "./tailwind.css";
const { PORT, NODE_ENV } = process.env;
const dev = NODE_ENV === 'development';
polka() // You can also use Express
.use(
compression({ threshold: 0 }),
sirv('static', { dev }),
sapper.middleware()
)
.listen(PORT, err => {
if (err) console.log('error', err);
});
• client Circular dependency: src\node_modules\@sapper\app.mjs -> src\node_modules\@sapper\internal\App.svelte -> src\routes\_layout.svelte -> src\node_modules\@sapper\app.mjs • server Circular dependency: src\routes\_layout.svelte -> src\node_modules\@sapper\app.mjs -> src\node_modules\@sapper\internal\App.svelte -> src\routes\_layout.svelte Circular dependency: src\routes\_layout.svelte -> src\node_modules\@sapper\app.mjs -> src\node_modules\@sapper\internal\manifest-client.mjs -> src\routes\_layout.svelte ✔
The text was updated successfully, but these errors were encountered: