. Advertisement .
..3..
. Advertisement .
..4..
Hi guys, I also encounter this error ”manifest: line: 1, column: 1, unexpected token.” when I run my code. I don’t know what the problem with my code is.
Here is what I currently have:
{
"manifest_version": 2,
"name": "extension",
"version": "1.0",
"description": "My first Chrome extension.",
"browser_action": {
"default_icon": "icon.jpg",
"popup": "popup.html"
}
}
Can you give me some advice?
The cause: I think the cause is that the manifest is null or empty.
Solution: You can fix this error by adding crossorigin attribute.