Closed
Description
code-server
version: v1.32.0-282- OS Version: Ubuntu 18.04.1 LTS in AWS EC2
Description
After installing the Prettier extension, it is not loaded according to VS Code -> Output panel
Found following errors in the Chrome Deverloper Tools -> Console:
VM5645 webview-pre.js:378 Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-lI7FtpaE7cBnMCxYJFcftk1y+Kd3aGDm9OKs5qP5uf4='), or a nonce ('nonce-...') is required to enable inline execution.
webview-pre.js:378 Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-lI7FtpaE7cBnMCxYJFcftk1y+Kd3aGDm9OKs5qP5uf4='), or a nonce ('nonce-...') is required to enable inline execution.
cb2232.bundle.js:60 Activating extension 'esbenp.prettier-vscode' failed: Cannot find module 'prettier'.
cb2232.bundle.js:45 [Extension Host] Activating extension 'esbenp.prettier-vscode' failed: Cannot find module 'prettier'. (at Object.showMessage (eval at exports.requireModule (/usr/local/bin/code-server:468:27660), <anonymous>:177866:37))
cb2232.bundle.js:45 [Extension Host] Activating extension `esbenp.prettier-vscode` failed: Cannot find module 'prettier' (at newlyActivatingExtension._host.actualActivateExtension.then (eval at exports.requireModule (/usr/local/bin/code-server:468:27660), <anonymous>:177722:25))
Steps to Reproduce
- Start self-hosted code-server (v1.32.0-282) in Ubuntu 18.04.1 LTS in AWS EC2
- Navigate to it from my Mac using Chrome, e.g., https://10.0.x.x:8888/
- Open Extensions tab -> Install Prettier
- Open Chrome Developer Tools -> Console and saw the above errors.