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
When running rails superglue:install:web or rails generate scaffold post body:string --force --no-template-engine --superglue superglue_rails generates page components with import statements that uses relative links. For example, in application.js we import page components like ../../views/posts/index.js.
Adding a jsonconfig.json or a tsconfig.json would help to shorten those imports. For example:
{
"compilerOptions": {
"target": "ES2016",
"module": "ESNext",
"moduleResolution": "Bundler", // << you should enable this
"esModuleInterop": true,
"paths": {
"@/*": ["./app/javascript/*"]
}
},
"exclude": ["node_modules/**/*"]
Since this file is generated once, add it as part of the rails superglue:install:web run.
The text was updated successfully, but these errors were encountered:
When running
rails superglue:install:web
orrails generate scaffold post body:string --force --no-template-engine --superglue
superglue_rails generates page components with import statements that uses relative links. For example, inapplication.js
we import page components like../../views/posts/index.js
.Adding a
jsonconfig.json
or atsconfig.json
would help to shorten those imports. For example:Since this file is generated once, add it as part of the
rails superglue:install:web
run.The text was updated successfully, but these errors were encountered: