#Thread
1 messages · Page 1 of 1 (latest)
Prettier seems not to work on my vscode version:
"ERROR" - 3:35:40 PM] Failed to load module. If you have prettier or plugins referenced in package.json, ensure you have run `npm install`
["INFO" - 3:35:50 PM] Attempted to determine module path from c:\Development\projects\Home-Assistant-frontend
["ERROR" - 3:35:50 PM] Failed to load module. If you have prettier or plugins referenced in package.json, ensure you have run `npm install`
["ERROR" - 3:35:50 PM] Cannot find module 'prettier' from 'c:\Development\projects\Home-Assistant-frontend'
Error: Cannot find module 'prettier' from 'c:\Development\projects\Home-Assistant-frontend'
["ERROR" - 3:35:50 PM] Cannot find module 'prettier' from 'c:\Development\projects\Home-Assistant-frontend'
Error: Cannot find module 'prettier' from 'c:\Development\projects\Home-Assistant-frontend'
What could that be?
How are you using prettier?
yarn run format:prettier
If you are using vscode, you can also run the command "Format document (forced)" using Ctrl+Shift+P.
btw, I fixed the format directly on github
thanks.
Not sure what happened on my local setup.
What is the easiest way to setup a developing/test environment. Is there a way to use my main HA to load test/developing branches or do i need to setup a whole new configuration?
these lines in your config.yml tells to the core that it should use your local front-end folder.
frontend:
# Example absolute path: /home/paulus/dev/hass/frontend
development_repo: /path/to/hass/frontend/
You can of course use your main env to load the dev front-end but I wouldn't recommend that 😅
You're better to run core locally to