Setting up Plasmo manually
I'm trying to migrate an extension to the framework but even after installing all the dependencies I seemingly need, I get an error
In the
I also have
🔴 ERROR | r.map is not a function
🟡 5 | TypeError: r.map is not a function
at file:///C:/repositories/extensions/youtube-like-dislike-shortcut/node_modules/.pnpm/plasmo@0.70.1_postcss@8.4.23/node_modules/plasmo/dist/index.js:150:14351🔴 ERROR | r.map is not a function
🟡 5 | TypeError: r.map is not a function
at file:///C:/repositories/extensions/youtube-like-dislike-shortcut/node_modules/.pnpm/plasmo@0.70.1_postcss@8.4.23/node_modules/plasmo/dist/index.js:150:14351In the
package.jsonpackage.json:{
"dependencies": {
"@mdi/js": "^7.2.96",
"@plasmohq/storage": "^1.5.0",
"plasmo": "^0.70.1",
"sass": "^1.62.1",
"svelte": "^3.59.1",
"svelte-preprocess": "^5.0.3"
},
"devDependencies": {
"@plasmohq/prettier-plugin-sort-imports": "^3.6.4",
"@sveltejs/eslint-config": "github:sveltejs/eslint-config",
"@types/chrome": "^0.0.235",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"autoprefixer": "^10.4.14",
"eslint": "^8.40.0",
"eslint-config-avi12": "github:avi12/eslint-config-avi12",
"eslint-plugin-svelte3": "^4.0.0",
"postcss": "^8.4.23",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.0",
"tailwindcss": "^3.3.2",
"typescript": "^5.0.4",
"web-ext": "^7.6.2",
"zip-self": "^0.5.6"
}
}{
"dependencies": {
"@mdi/js": "^7.2.96",
"@plasmohq/storage": "^1.5.0",
"plasmo": "^0.70.1",
"sass": "^1.62.1",
"svelte": "^3.59.1",
"svelte-preprocess": "^5.0.3"
},
"devDependencies": {
"@plasmohq/prettier-plugin-sort-imports": "^3.6.4",
"@sveltejs/eslint-config": "github:sveltejs/eslint-config",
"@types/chrome": "^0.0.235",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"autoprefixer": "^10.4.14",
"eslint": "^8.40.0",
"eslint-config-avi12": "github:avi12/eslint-config-avi12",
"eslint-plugin-svelte3": "^4.0.0",
"postcss": "^8.4.23",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.0",
"tailwindcss": "^3.3.2",
"typescript": "^5.0.4",
"web-ext": "^7.6.2",
"zip-self": "^0.5.6"
}
}I also have
- prettierrc.cjs
- postcss.config.js
- svelte.config.js
- tailwind.config.js- prettierrc.cjs
- postcss.config.js
- svelte.config.js
- tailwind.config.js