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

Babel Loader Missing Support For Angular Injection #9445

Open
imben1109 opened this Issue Feb 2, 2019 · 2 comments

Comments

Projects
None yet
3 participants
@imben1109
Copy link

imben1109 commented Feb 2, 2019

I am trying to Babel-Loader to Compile TypeScript for Angular. However, I tried to inject Service into Angular Component.

It throw below exception

Uncaught Error: Can't resolve all parameters for e: (?).
    at ai (output.js:993)
    at e._getDependenciesMetadata (output.js:1212)
    at e._getTypeMetadata (output.js:1212)
    at e.getNonNormalizedDirectiveMetadata (output.js:1212)
    at e._getEntryComponentMetadata (output.js:1212)
    at output.js:1212
    at Array.map (<anonymous>)
    at e.getNgModuleMetadata (output.js:1212)
    at e._loadModules (output.js:1472)
    at e._compileModuleAndComponents (output.js:1472)

But I tried to use ts-loader. It does not have any problems.

The below is my .babelrc

{
  "presets": [
    "@babel/preset-env",
    "@babel/preset-typescript"
  ],
  "plugins": [
    [
      "@babel/plugin-proposal-decorators",
      {
        "legacy": true,
      }
    ],
    "@babel/plugin-proposal-class-properties",
  ]
}
@babel-bot

This comment has been minimized.

Copy link
Collaborator

babel-bot commented Feb 2, 2019

Hey @imben1109! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community
that typically always has someone willing to help. You can sign-up here
for an invite.

@nicolo-ribaudo

This comment has been minimized.

Copy link
Member

nicolo-ribaudo commented Feb 2, 2019

Input code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment