You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't have any bugs but I caught a problem when we decided to move our app to module flow we have seen a problem with require especially in the server_render.js file. We are using mixed js and ts
var componentRequireContext = require.context('components', true);
var ReactRailsUJS = require('react_ujs');
ReactRailsUJS.useContext(componentRequireContext);
Is it possible to move this code to ES module approach? Who is faced with this issue?
This discussion was converted from issue #1340 on September 27, 2024 06:49.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I don't have any bugs but I caught a problem when we decided to move our app to module flow we have seen a problem with require especially in the server_render.js file. We are using mixed js and ts
Is it possible to move this code to ES module approach? Who is faced with this issue?
Beta Was this translation helpful? Give feedback.
All reactions