Cannot find module '../ast-utils' when formating
See original GitHub issueHi all,
I’m getting the following error after installing prettier-vscode and trying to format a file.
Cannot find module '../ast-utils'
I have no idea about what’s happening.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:68
- Comments:68 (2 by maintainers)
Top Results From Across the Web
ModuleNotFoundError: No module named 'distutils.core'
I can't figure out what to do. I tried to install distutils: milano@milano-PC:~$ sudo apt-get install python3-distutils Reading package lists...
Read more >ModuleNotFoundError: No module named 'distutils.cmd' #124
The reason I am trying to install pip via get-pip.py is to have Python3.9 only, with no 3.8. I seems, I will have...
Read more >2. Writing the Setup Script — Python 3.11.1 documentation
The setup script is the centre of all activity in building, distributing, and installing modules using the Distutils. The main purpose of the...
Read more >python - ModuleNotFoundError: No module named 'distutils.util'
The module not found likely means the packages aren't installed. sudo apt-get install python3-distutils sudo apt-get install python3-apt.
Read more >no module named 'distutils.cmd' python 3.9 - You.com
After installing the “distutils” module, your Python script should be ... It appears you are missing some prerequisite to build the package from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same problem here with
eslint 6
.rm -rf node_modules
andnpm i
did not help.Error:
Cannot find module '../util/ast-utils'
Incase this is still an issue, I found that changing
"prettier.eslintIntegration": true
to
"prettier-eslint.eslintIntegration": true
in Settings (JSON) for VS Code fixed all the issues with prettier and eslint. I’ve managed to upgrade to the latest version of prettier and eslint and things are working as expected.