小编bor*_*iao的帖子

错误:在 bitbucket 中构建 vite 时,Rollup 无法解析导入“vue-router”

错误:当在 bitbucket\nbitbucket-pipelines.yml 中构建 vite 时,Rollup 无法解析导入“vue-router”

\n
image: node:16\n\npipelines:\n  branches:\n    master:\n      - step:\n          name: install\n          caches:\n            - node\n          script:\n            - npm i\n      - step:\n          name: build\n          caches:\n            - node\n          script:\n            - npm run build\n          artifacts: # defining the artifacts to be passed to each future step\n            - dist/**\n      - step:\n          name: Deploy to Serve\n          deployment: Production\n          script:\n            - pipe: atlassian/sftp-deploy:0.5.5\n              variables:\n                USER: $FTP_USERNAME\n                SERVER: $FTP_HOST\n                REMOTE_PATH: $FTP_SITE_ROOT\n                PASSWORD: $SFTP_PASSWORD\n                LOCAL_PATH:  $BITBUCKET_CLONE_DIR/dist/*\n                DEBUG: 'true'\n
Run Code Online (Sandbox Code Playgroud)\n

错误信息\xef\xbc\x9a

\n

vite]: Rollup 无法解析从“src/router/index.js”导入“vue-router”。\n这很可能是无意的,因为它可能会在运行时破坏您的应用程序。\n如果您确实想要外部化此模块,请显式添加\n \n构建期间出现 …

vue.js vite

5
推荐指数
0
解决办法
2857
查看次数

标签 统计

vite ×1

vue.js ×1