Comments (9)
This combination worked for me -
"@prettier/plugin-ruby": "1.6.1",
"prettier": "2.2.0",
"prettier-plugin-erb": "^0.4.0"
from prettier-plugin-erb.
I'm seeing this too.
from prettier-plugin-erb.
Same for me as well
from prettier-plugin-erb.
Same here.
from prettier-plugin-erb.
Same!
from prettier-plugin-erb.
It seems like the issue occurs in combination with the new release of version 2.0.0 of @prettier/plugin-ruby. I downgraded to "@prettier/plugin-ruby": "1.6.1"
and formatting is working now again as expected 🚀
from prettier-plugin-erb.
It seems like the issue occurs in combination with the new release of version 2.0.0 of @prettier/plugin-ruby. I downgraded to
"@prettier/plugin-ruby": "1.6.1"
and formatting is working now again as expected 🚀
This didn't work for me. I restarted VS Code and still got the "..trim" error
from prettier-plugin-erb.
@akimthedream Hello, can we please see your package.json, tried to downgrade but it wipes out much of the code on save and changes the html tags to I'm trying to guess which combination we need.
It would be big help! thank you, if you have time.
"devDependencies": {
"@prettier/plugin-ruby": "1.6.1",
"prettier": "1.9.0",
"prettier-plugin-erb": "^0.4.0",
"webpack-dev-server": "^3"
}
from prettier-plugin-erb.
This is all related to #49
from prettier-plugin-erb.
Related Issues (20)
- Incorrect treatment of <%== %> in html.erb files
- Migrate to Prettier v3 HOT 3
- Error formatting document: RangeError: Invalid count value HOT 1
- Ruby not formatted if it opens a block
- Please consider marking this library as deprecated HOT 2
- Fails to parse an erb multiline comment with quotes inside HOT 1
- Enabling formatOnSave for VS Code HOT 5
- Should exit with non-zero status on error
- Multiline-comment lines containing a colon are indented with each formatter run HOT 2
- Weird formatting on <i> tags with ERB (e.g. used for icons) HOT 3
- Invalid erb output for long blocks HOT 2
- Issues with leading dash in embedded ruby block HOT 2
- Why add whitespace between % and # in comments? HOT 2
- Ruby expressions are getting replaced with <eext> HOT 16
- Handle 2.3 prettier changes HOT 6
- render tag <%=%> replaced with [object Object] when used in img tag HOT 16
- Support file extension .html+*.erb for rails and viewcomponent variants
- <% %> Delete HOT 7
- Incorrect output </eext8><br/> HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prettier-plugin-erb.