core-decorators icon indicating copy to clipboard operation
core-decorators copied to clipboard

Cannot resolve symbol 'applyDecorators' Validate ES6 imports

Open sajjadrobin opened this issue 6 years ago • 5 comments

I was trying to use autobind decorator. It's Babel 6 without .babelrc file. So I am unable to use decorator legacy plugin. Anyway this code below works with a warning.

import { applyDecorators } from "core-decorators"

Why? Warning is: Cannot resolve symbol 'applyDecorators' Validate ES6 imports I am using: "core-decorators": "0.20.0".

sajjadrobin avatar Mar 09 '18 16:03 sajjadrobin

Sorry for the delay, making my way through a huge backlog. I'm not sure why that happens. Does any of the other imports work? If you're using the ESM build it seems to be exported correctly: https://unpkg.com/[email protected]/es/core-decorators.js

jayphelps avatar May 09 '18 17:05 jayphelps

I am using it with Create-React-APP. It complains always in Webstorm about applyDecorators. Also, I don't see that in exported list either. Thanks for replying.

On Wed, May 9, 2018 at 7:48 PM, Jay Phelps [email protected] wrote:

Sorry for the delay, making my way through a huge backlog. I'm not sure why that happens. Does any of the other imports work? If you're using the ESM build it seems to be exported correctly: https://unpkg.com/core- [email protected]/es/core-decorators.js

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jayphelps/core-decorators/issues/149#issuecomment-387820374, or mute the thread https://github.com/notifications/unsubscribe-auth/ABiUiPu6msByUSfGH9CjM9pgGqPDKTz1ks5twyv_gaJpZM4Skjz4 .

-- ROBIN +46738741993 https://wwwsajjadrobin.com https://www.sajjadrobin.com

sajjadrobin avatar May 09 '18 18:05 sajjadrobin

I don't see that in exported list either.

Can you clarify? it shows up here: https://unpkg.com/[email protected]/es/core-decorators.js

jayphelps avatar May 09 '18 19:05 jayphelps

I’ll check my npm package and version number also. I’ll update

On Wed, 9 May 2018 at 21:51, Jay Phelps [email protected] wrote:

I don't see that in exported list either.

Can you clarify? it shows up here: https://unpkg.com/[email protected]/es/core-decorators.js

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jayphelps/core-decorators/issues/149#issuecomment-387855193, or mute the thread https://github.com/notifications/unsubscribe-auth/ABiUiEYZPJMNIc1vr-OApGPhb03wcl-8ks5tw0ivgaJpZM4Skjz4 .

sajjadrobin avatar May 09 '18 20:05 sajjadrobin

Hi Jay, I am using version 20 also. Is applyDecorator exported from https://github.com/jayphelps/core-decorators/blob/master/index.d.ts like https://unpkg.com/[email protected]/es/core-decorators.js ?

On Wed, May 9, 2018 at 10:03 PM, Md Sajjad Robin wrote:

I’ll check my npm package and version number also. I’ll update

On Wed, 9 May 2018 at 21:51, Jay Phelps [email protected] wrote:

I don't see that in exported list either.

Can you clarify? it shows up here: https://unpkg.com/core- [email protected]/es/core-decorators.js

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jayphelps/core-decorators/issues/149#issuecomment-387855193, or mute the thread https://github.com/notifications/unsubscribe-auth/ABiUiEYZPJMNIc1vr-OApGPhb03wcl-8ks5tw0ivgaJpZM4Skjz4 .

--

sajjadrobin avatar May 14 '18 09:05 sajjadrobin