Skip to content

Commit

Permalink
fix: remove FAQ in content's readme
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterAlfredLee committed Feb 18, 2023
1 parent 28fb1fb commit c145db3
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions packages/vite-plugin-content/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,27 +97,3 @@ console.log(properties)

- `xlsx.xlsxOptions`
Options of `sheetjs`. See [here](https://github.com/SheetJS/sheetjs#parsing-options) for more details.

## FAQ

1. `content is not a function` error:

```shell
error when starting dev server:
TypeError: content is not a function
```

This is caused by `type: "module"` in your `package.json`(see [#164](https://github.com/originjs/origin.js/issues/164) for details).

To fix this, you can remove `type: "module"` in your `package.json`, or you can use this wordaround:

```javascript
// vite.config.js
import content from '@originjs/vite-plugin-content'

export default {
plugins: [
(content as any).default()
]
}
```

0 comments on commit c145db3

Please sign in to comment.