Comments (7)
Removing webpacker would be an option? https://www.simplethread.com/rails-7-the-end-of-webpacker/ https://world.hey.com/dhh/rails-7-will-have-three-great-answers-to-javascript-in-2021-8d68191b
from gobierto.
Yeah, that's totally an option! I don't if that's a step too far on the path.
Maybe first we can migrate from node-sass to dart-sass which is the future, and with that we'll be closer to drop Webpacker. Removing webpacker will require to consider the different alternatives. I think the next step is to study https://github.com/rails/jsbundling-rails and understand if it allows us to migrate from Webpacker to esbuild without suffering too much.
from gobierto.
Definitely it's an option, but as @ferblape said, it's too early. On one hand, rails 7 is yet freshly baked and on the other hand we need to pave the way before such breaking change. Step by step, the project must get rid of the outdated stuff, I'd try to migrate to webpacker 6 (because it's the most up-to-date milestone) and finally we'll dismiss webpacker once the previous steps are done.
from gobierto.
Hey, in the meantime is it possible to upgrade to node-sass 6? It supports the latest versions of node: rails/webpacker#3217
from gobierto.
I didn't have so much idea 'bout that, so I tested:
- gobierto hadn't a direct dependency to
node-sass
, it was through@rails/webpacker
- the release we're using (5.2.1) had node-sass, however, the latest (5.4.3) hadn't
- the link you pointed, it looks like works for webpacker 4.x branch. Gobierto implements 5.x branch
- I successfully run the app with node v16
- let's see if the tests are green and the deploy doesn't break anything.... 🤞
from gobierto.
With the last upgrade to @rails/webpack 5.4.3
the console throws some deprecation warnings from dart sass
Deprecation Warning: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div(-$size, 2)
from gobierto.
Sass offers this migration tool, to make the changes in an automatic way. BUT, I remember I've played already with it and some things gets broken.
I'll create an issue to update the semantics
from gobierto.
Related Issues (20)
- Calendars / Show error message and backtrace when synchronization fails
- Upgrade sass semantics
- Current site instance variable caching is causing caching issues in gobierto data
- Babel warnings after webpacker upgrade
- Clean CSS dependencies && Move to SASS module system
- Fix position on hover "info-box" on Tree-map HOT 1
- NameError happened in GobiertoDocuments::Api::V1::DocumentsController#index HOT 1
- Sidekiq configuration test
- Migrate from Google Analytics and Mixpanel to Ahoy HOT 3
- Calendars / Start day at 7AM, not 00AM HOT 3
- Yarn v3
- Can't find variable ga
- Error in MetaWelcome controller cache when a CMS page is defined as homepage
- NoMethodError exception in track_request
- Unsupported argument type: ActionDispatch::Http::UploadedFile exception
- Undefined variable exception
- No news displayed in Esplugues PAM
- Upgrade to Ruby 3
- Unused NPM dependencies
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 gobierto.