Раньше команда
npm run watch
выполнялась без ошибок, и все работало.
Сейчас я компилирую командой
npm run build
, и мне выдает ошибку:
[rollup-plugin-dynamic-import-variables] Unexpected token (1:0)
file: /Users/vladimir/Desktop/Task-Cloud/resources/js/views/index.vue:1:0
error during build:
SyntaxError: Unexpected token (1:0)
at Parser.pp$4.raise (/Users/vladimir/Desktop/Task-Cloud/node_modules/rollup/dist/shared/rollup.js:19740:13)
at Parser.pp$9.unexpected (/Users/vladimir/Desktop/Task-Cloud/node_modules/rollup/dist/shared/rollup.js:17034:8)
at Parser.pp$5.parseExprAtom (/Users/vladimir/Desktop/Task-Cloud/node_modules/rollup/dist/shared/rollup.js:19115:10)
at Parser.pp$5.parseExprSubscripts (/Users/vladimir/Desktop/Task-Cloud/node_modules/rollup/dist/shared/rollup.js:18907:19)
at Parser.pp$5.parseMaybeUnary (/Users/vladimir/Desktop/Task-Cloud/node_modules/rollup/dist/shared/rollup.js:18873:17)
at Parser.pp$5.parseExprOps (/Users/vladimir/Desktop/Task-Cloud/node_modules/rollup/dist/shared/rollup.js:18800:19)
at Parser.pp$5.parseMaybeConditional (/Users/vladimir/Desktop/Task-Cloud/node_modules/rollup/dist/shared/rollup.js:18783:19)
at Parser.pp$5.parseMaybeAssign (/Users/vladimir/Desktop/Task-Cloud/node_modules/rollup/dist/shared/rollup.js:18750:19)
at Parser.pp$5.parseExpression (/Users/vladimir/Desktop/Task-Cloud/node_modules/rollup/dist/shared/rollup.js:18713:19)
at Parser.pp$8.parseStatement (/Users/vladimir/Desktop/Task-Cloud/node_modules/rollup/dist/shared/rollup.js:17224:45)
Я так понимаю, проблема из-за файла views/index.vue
<template>
<div class="container">
<div class="sidebar">
<sidebar></sidebar>
</div>
<div class="content">
Сегодня 7.04
</div>
</div>
</template>
<script>
import Sidebar from '../components/Sidebar.vue';
export default {
components: {
Sidebar,
}
}
</script>
<style lang="scss" scoped>
.container {
max-width: 1200px;
margin: 0 auto;
padding-top: 30px;
display: flex;
flex-flow: row nowrap;
}
.sidebar {
width: 20%;
height: 100vh;
// border-right: 1px solid #f7f7f7;
}
.content {
width: 80%;
}
</style>