Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot Reload with false-positive on Meteor 3.0 using module-resolver Babel plugin #13060

Open
vit0rr opened this issue Mar 16, 2024 · 2 comments
Open
Labels
Meteor 3 relates to Meteor 3 needs-investigation needs proper investigation needs-reproduction We can't reproduce so it's blocked Project:HMR Type:Bug
Milestone

Comments

@vit0rr
Copy link
Member

vit0rr commented Mar 16, 2024

Hello,
I'm using [email protected] and refactored my codebase to module aliases imports. I'm using module-resolver to create some alias:

{
  "plugins": [
    [
      "@babel/plugin-transform-react-jsx",
      {
        "runtime": "automatic"
      }
    ],
    [
      "module-resolver",
      {
        "alias": {
          "@/imports": "/imports",
          "@/private": "/private",
          "@/public": "/public",
          "@/scripts": "/scripts",
          "@/server": "/server",
          "@/tests": "/tests",
          "@/ui": "/ui"
        },
      }
    ]
  ]
}

And I've created the same alias using path on my tsconfig.json.

My app runs without problems, but when I change and trigger the hot reload, I get a false-positive Babel log telling me that I cannot resolve the imports from the file I changed:
Screenshot 2024-03-16 at 09 47 44

It is a false positive because the apps run without errors, even when I get error messages suggesting that I cannot resolve my imports.

I have yet to test it using old Meteor versions.

@vit0rr vit0rr changed the title Hot Reload with false-positive on Meteor 3.0 using Babel Hot Reload with false-positive on Meteor 3.0 using module-resolver Babel plugin Mar 16, 2024
@vit0rr vit0rr added the Meteor 3 relates to Meteor 3 label Mar 16, 2024
@Grubba27 Grubba27 added the needs-reproduction We can't reproduce so it's blocked label Mar 18, 2024
@Grubba27
Copy link
Contributor

Grubba27 commented Mar 18, 2024

Is this your .babelrc file?

Can this be solved with loglevel: "silent" config?

@StorytellerCZ StorytellerCZ added this to the Release 3.0 milestone Mar 19, 2024
@vit0rr
Copy link
Member Author

vit0rr commented Mar 20, 2024

Is this your .babelrc file?

Can this be solved with loglevel: "silent" config?

It does not solve the problem; it is just hidden.
But yes, this flag is what I already do for my App.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Meteor 3 relates to Meteor 3 needs-investigation needs proper investigation needs-reproduction We can't reproduce so it's blocked Project:HMR Type:Bug
Projects
None yet
Development

No branches or pull requests

3 participants