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
{{ message }}
Repository navigation
eslint(import/namespace): error 'BrowserTracing' not found in imported namespace 'Sentry' #9728
32:18 error 'BrowserTracing' not found in imported namespace 'Sentry' import/namespace
39:18 error 'Replay' not found in imported namespace 'Sentry' import/namespace
Reacted by Vitaly Kuprin, Lauri Elias and Hamed Siaban
TIL that Github Actions has inline code annotations for checks like eslint 😮 as the errors I mentioned in the initial post also appear in that last commit I linked.
@binajmen thank you! A maintainer has answered there and clarified. With that information, I can say that we simply have an incompatibility with eslint-plugin-import that we will not fix (at least in the near future).
The SDK has different exports depending on which context it is run (server or client) and we currently do not have plans to align them. The TS type definitions are isomorphic and complete and our source of truth. If you want you can rely on those.
Activity
lforst commentedon Dec 4, 2023
Hi, how did you import
Sentry?brettdh commentedon Dec 4, 2023
As directed in the setup guide:
lforst commentedon Dec 4, 2023
Would you mind sharing a small reproduction repo where we can generate this bug? Thanks!
Our generated types look fine so I am surprised you're running into this.
brettdh commentedon Dec 6, 2023
Here you go: https://github.com/brettdh/sentry-remix-eslint-repro
Steps I took:
npx create-remix@latest --template remix-run/grunge-stack .(brettdh/sentry-remix-eslint-repro@50a7dbb)remix.initscript (brettdh/sentry-remix-eslint-repro@dfacdee)npx @sentry/wizard@latest -i remixand fix unrelatedimport/ordererrors (brettdh/sentry-remix-eslint-repro@9635d84)TIL that Github Actions has inline code annotations for checks like eslint 😮 as the errors I mentioned in the initial post also appear in that last commit I linked.
42 remaining items
lforst commentedon Feb 23, 2024
I think this is a bug in
eslint-plugin-importthat our SDK just happens to run into. Would you mind raising an issue there?I don't feel the need to fix this in the SDK because Typescript itself and other eslint plugins are able to resolve the exports just fine 🤔
binajmen commentedon Feb 27, 2024
I have opened an issue on the
eslint-plugin-importrepository. Please feel free to add to it, as I was unable to provide detailed information.Would the best workaround be to temporarily ignore these ESLint errors?
lforst commentedon Feb 27, 2024
@binajmen thank you! A maintainer has answered there and clarified. With that information, I can say that we simply have an incompatibility with
eslint-plugin-importthat we will not fix (at least in the near future).The SDK has different exports depending on which context it is run (server or client) and we currently do not have plans to align them. The TS type definitions are isomorphic and complete and our source of truth. If you want you can rely on those.
Closing as wont-fix (for now).
binajmen commentedon Feb 27, 2024
@lforst thank you, not sure how I'll fix the lint issue but at least we know ;)
ljharb commentedon Feb 27, 2024
fwiw, that's a very confusing API, and strongly suggests it should be split into two packages if it's not going to be aligned.
GOWxx commentedon May 12, 2024
same error.
@lforst
I created a repository, hoping this can help you. Thank you for your hard work and dedication!
Minimum Reproducible Repository:
https://github.com/GOWxx/remix-pnpm-sentry-eslint-namespace-error-repo
lforst commentedon May 14, 2024
@GOWxx we will not fix this. Please see import-js/eslint-plugin-import#2969 (comment)
GOWxx commentedon May 16, 2024
Thank you for your reply. I will look for information related to
TS import resolverto try and solve the issue. Thank you!feat: eslint-plugin-import와 Sentry의 호환 이슈로, ESlint 무효화 주석을 추가한다
feat: eslint-plugin-import와 Sentry의 호환 이슈로, ESlint 무효화 주석을 추가한다
Feature: sentry로 에러를 추적한다 (#15)