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

"nanoid is not a function" in 2.0.0 #186

Closed
mririgoyen opened this issue Apr 1, 2019 · 7 comments
Closed

"nanoid is not a function" in 2.0.0 #186

mririgoyen opened this issue Apr 1, 2019 · 7 comments
Labels

Comments

@mririgoyen
Copy link

Looks like there is an issue in the 2.0.0 release:

hunspellLoader.js:21 Uncaught (in promise) TypeError: nanoid is not a function
    at exports.hunspellLoader (hunspellLoader.js:21)
    at timeout (loadModule.js:29)
    at getModuleLoader.js:37
    at step (tslib.es6.js:97)
    at Object.next (tslib.es6.js:78)
    at fulfilled (tslib.es6.js:68)
@kwonoj
Copy link
Owner

kwonoj commented Apr 1, 2019

Would you mind share reproducible repo to take a look? I'm using same version on my prod application failed to repro this.

@kwonoj kwonoj added the bug label Apr 1, 2019
@mririgoyen
Copy link
Author

I'll have to whip one up later tonight, I do not have anything sharable at the moment.

@kwonoj
Copy link
Owner

kwonoj commented Apr 1, 2019

Thanks. rough hunch is this may related with importing default export and application's configuration around those, it'll be helpful if I can reproduce it.

@mririgoyen
Copy link
Author

I can share that we are currently on 1.1.2 and it works fine. I don't see anything in the breaking changes that would affect us. We do, however, use Parcel currently as our bundler and it is not the greatest. It is possible something is happening there.

@kwonoj
Copy link
Owner

kwonoj commented Apr 1, 2019

Bundler plays a lot of rules around import scenarios, so I think it is possible some of build config affects it. I just tried latest with plain node.js doesn't invoving any bundler, and it works fine to load to deps.

@kwonoj
Copy link
Owner

kwonoj commented May 28, 2019

so far it's hard to tell if this is bundler config of actual issue (I'm using with bundler without problem currently), tentatively closing. feel free to reopen / create new issue if there's minimal repro I can try.

@kwonoj kwonoj closed this as completed May 28, 2019
@mririgoyen
Copy link
Author

Nah, closing this is fine if no one else is seeing the issue. We've since moved off of Parcel and on to Webpack and have no issues with the latest release. My apologizes for not updating and closing this issue earlier. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants