Plasmo refuses to work due to not finding gen-asse...
# support-framework
f
Plasmo refuses to work due to not finding gen-assets
I've updated today to plasmo 0.42.2, and this issue has popped up. Plasmo refuses to work because of the following error:
Copy code
 npm run dev                                                       INT ✘ 

> test-extension@1.0.0 dev
> plasmo dev

🟣 Plasmo v0.42.2
🟠 The browser extension development framework.
🔵 INFO   | Starting the extension development server...
Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
🔴 ERROR  | Failed to resolve './gen-assets/icon16.png' from './.plasmo/manifest.json'
          | {
  "manifest_version": 3,
  "icons": {
    "16": "./gen-assets/icon16.png",
    "48": "./gen-assets/icon48.png",
    "128": "./gen-assets/icon128.png"
  },
  "action": {
    "default_icon": {
      "16": "./gen-assets/icon16.png",
      "48": "./gen-assets/icon48.png"
    }
  },
  "version": "1.0.0",
  "name": "Test Extension",
  "description": "This is a test",
  "author": "me",
  "content_scripts": [
    {
      "matches": [
        "https://www.plasmo.com/*"
      ],
      "js": [
        "static/contents/ranker-overlay.tsx"
      ]
    }
  ],
  "permissions": [],
  "host_permissions": [
    "https://*/*"
  ],
  "content_security_policy": {
    "extension_pages": "default-src 'self';style-src 'unsafe-inline' fonts.googleapis.com;font-src 'unsafe-inline' fonts.gstatic.com"
  }
}

          | /home/kuro/new-chrome-extension/.plasmo/manifest.json:10:13
🔴 ERROR  | Cannot load file './gen-assets/icon16.png' in './.plasmo'.
Note that I don't have an
icon512.png
file in the assets folder, so I assume that nothing should be generated
It's partly my bad, it was happening because I created a
/src
folder and moved the assets inside, when the documentation says that it will only recognize
.ts
and
.tsx
files, so it still searches for an asset folder in the root of the project