Open achintha-weerasinghe opened 2 years ago
Facing the same error on Mac M1.
Same here on Manjaro
This issue is tracked here.
one way to fix this is how @madumal7 mentioned or comment the line . But by doing this it'll still throwing error. this project is not the great way to go , when it comes to manifest 3
Same error. This problem blocks our development. How can we use standard webpack code to achieve similar results?
Replacing with this in package.json solved the issue
"vue-cli-plugin-browser-extension": "npm:@rhilip/vue-cli-plugin-browser-extension@^0.26.0",
Same error.
Replacing with this in package.json solved the issue
"vue-cli-plugin-browser-extension": "npm:@rhilip/vue-cli-plugin-browser-extension@^0.26.0",
this works..
Replacing with this in package.json solved the issue
"vue-cli-plugin-browser-extension": "npm:@rhilip/vue-cli-plugin-browser-extension@^0.26.0",
I am using vue 2. In package.json I put same line of code but I am getting errror as below
Error: Cannot find module 'vue-cli-plugin-browser-extension'
Please help.
My package.json
{ "name": "browserexttest", "version": "0.1.0", "private": true, "scripts": { "serve": "vue-cli-service build --mode development --watch", "build": "vue-cli-service build", "lint": "vue-cli-service lint" }, "dependencies": { "@rhilip/vue-cli-plugin-browser-extension": "^0.27.0", "core-js": "^3.8.3", "vue": "^2.6.14" }, "devDependencies": { "@babel/core": "^7.12.16", "@babel/eslint-parser": "^7.12.16", "@vue/cli-plugin-babel": "~5.0.0", "@vue/cli-plugin-eslint": "~5.0.0", "@vue/cli-service": "~5.0.0", "eslint": "^7.32.0", "eslint-plugin-vue": "^8.0.3", "vue-cli-plugin-browser-extension": "npm:@rhilip/vue-cli-plugin-browser-extension@^0.27.0", "vue-template-compiler": "^2.6.14" }, "eslintConfig": { "root": true, "env": { "node": true, "webextensions": true }, "extends": [ "plugin:vue/essential", "eslint:recommended" ], "parserOptions": { "parser": "@babel/eslint-parser" }, "rules": {} }, "browserslist": [ "> 1%", "last 2 versions", "not dead" ] }
Started a fresh vue3 project.
Installed the plugin using
vue add browser-extension
Then I ran the serve script which is
vue-cli-service build --mode development --watch
I also triedvue-cli-service build
as well withoud the additional flags. But got the same error.But I got the following error.
Expected behavior Build the project without any errors
Temporary solution Change the node_modules/vue-cli-plugin-browser-extension/index.js line 129 from
args[0][0].ignore.push('browser-extension.html')
toargs[0][0]?.ignore.push('browser-extension.html')