-
-
Notifications
You must be signed in to change notification settings - Fork 432
error TS2307: Cannot find module '@sapper/internal/manifest-server' or its corresponding type declarations. #1583
Comments
You shouldn't need to set What can be confusing is that That still doesn't quite explain your error message. Is there an import to |
Is this issue resolved? |
I got a simular error. Got it from migrating from webpack v4 to v5 |
I'm getting this error as well ... I've run the build already. To me it looks like Actually get the same error if I take the template app, add typescript, and add strict to the TS config |
I managed to get past this error by adding rules: [
{
test: /\.m?js/,
resolve: {
fullySpecified: false
}
},
{
test: /\.(svelte|html)$/,
exclude: {
and: [/node_modules/],
not: [/@sapper/],
},
use: {
loader: 'svelte-loader'
}
}
...
] The problem was the generated import statements in But now I'm hitting a new error: |
The docs specifically mention:
But this doesn't work for me as I get:
Looking at index.d.ts in @sapper, I don't see the exports for SapperRequest and SapperResponse. I think I'm facing an issue pretty close to this one. |
@RamiAwar I was having the same issue. Upgrading to sapper 0.29.1 and using |
@laurentS I got it to work at some point, but it didn't result in autocomplete functionality. I ended up using Polka's Request and http ServerResponse. |
On v0.28.10 with
"strict": true
intsconfig.json
&sapper/common
intypes
, results with the error:The text was updated successfully, but these errors were encountered: