how to import module in to nuxt js page

how to import module transliter in to nuxt js page? How to fix it this bug?

package.json:

....
"axios": "^0.16.2",
"fs": "0.0.1-security",
"transliter": "^1.0.2",
....

Page:

....
<script>
import axios from 'axios'
import transliter from 'transliter'
....

Console error:

ERROR  Failed to compile with 1 errors

This dependency was not found:

* fs in ./~/require-dir/index.js

To install it, you can run: npm install --save fs
nuxt.js

Answers

comments powered by Disqus