{
path: '/history/:id',
component: HistoryId,
name: 'historyId',
props: true
}
<router-link
tag="a"
class="button"
:to="{name: 'historyId', params: {id: historyItem.id, date: historyItem.date}, props: {id: historyItem.id, date: historyItem.date}}"
:key="historyItem.id"
>
<script>
export default {
props: ['date'],
https: true,
https: {
key: fs.readFileSync('C:/Users/Developer/localhost-key.pem'),
cert: fs.readFileSync('C:/Users/Developer/localhost.pem'),
ca: fs.readFileSync('C:/Users/Developer/AppData/Local/mkcert/rootCA.pem')
},
C:\projects\findclone\build\webpack.dev.conf.js:27
key: fs.readFileSync('C:/Users/Developer/localhost-key.pem'),
^
ReferenceError: fs is not defined
at Object.<anonymous> (C:\projects\findclone\build\webpack.dev.conf.js:27:12)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at requireConfig (C:\projects\findclone\node_modules\webpack\bin\convert-argv.js:97:18)
at C:\projects\findclone\node_modules\webpack\bin\convert-argv.js:104:17
at Array.forEach (<anonymous>)
at module.exports (C:\projects\findclone\node_modules\webpack\bin\convert-argv.js:102:15)
at Object.<anonymous> (C:\projects\findclone\node_modules\webpack-dev-server\bin\webpack-dev-server.js:223:50)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! findclone@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the findclone@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Developer\AppData\Roaming\npm-cache\_logs\2019-03-18T12_08_54_940Z-debug.log
Process finished with exit code 1