Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,25 @@ registerPlugin(

</details>

<details>
<summary>How do I fix plugin build errors related to the `express-serve-static-core` module?</summary>

Building a plugin results in a fatal error `Cannot find module 'express-serve-static-core'`, originating from `node_modules/@scullyio/scully/lib/utils/serverstuff/staticServer.d.ts`

To correct this, add the `skipLibCheck` and `skipDefaultLibCheck` flags to your `tsconfig.json` => `compilerOptions` like this:

```json
{
"compileOnSave": false,
"compilerOptions": {
"skipLibCheck": true,
"skipDefaultLibCheck": true
}
}
```

</details>

<style>

details[open] summary ~ * {
Expand Down
84 changes: 84 additions & 0 deletions tests/jest/src/__tests__/__snapshots__/docsThere.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4811,6 +4811,90 @@ For example, if you want to ignore all undefined routes you can do:
</code>
</pre>
</details>
<details ="">
<summary ="">
How do I fix plugin build errors related to the \`express-serve-static-core\` module?
</summary>
<p ="">
Building a plugin results in a fatal error
<code ="">
Cannot find module 'express-serve-static-core'
</code>
, originating from
<code ="">
node_modules/@scullyio/scully/lib/utils/serverstuff/staticServer.d.ts
</code>
</p>
<p ="">
To correct this, add the
<code ="">
skipLibCheck
</code>
and
<code ="">
skipDefaultLibCheck
</code>
flags to your
<code ="">
tsconfig.json
</code>
=&gt;
<code ="">
compilerOptions
</code>
like this:
</p>
<pre ="">
<code class="language-json"
=""
>
{
<span class="hljs-attr"
=""
>
"compileOnSave"
</span>
:
<span class="hljs-literal"
=""
>
false
</span>
,
<span class="hljs-attr"
=""
>
"compilerOptions"
</span>
: {
<span class="hljs-attr"
=""
>
"skipLibCheck"
</span>
:
<span class="hljs-literal"
=""
>
true
</span>
,
<span class="hljs-attr"
=""
>
"skipDefaultLibCheck"
</span>
:
<span class="hljs-literal"
=""
>
true
</span>
}
}
</code>
</pre>
</details>
<style ="">
details[open] summary ~ * {
animation: sweep .5s ease-in-out;
Expand Down