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

Get error because of third party package #1245

Closed
inyutin opened this issue Feb 6, 2019 · 4 comments

Comments

@inyutin
Copy link

commented Feb 6, 2019

Standard version: 12.0.0

Operating system: Manjaro 18.0.2 Illyria
Node.js: v11.6.0
npm: 6.7.0

In my project I use this side package:
https://github.com/alexandercerutti/node-telegram-operation-manager

So, I have this line:
let reply = new Reply['default']()

I get an error A constructor name should not start with a lowercase letter., because of "default" in declaration. However I can't change it, because this is how it written in side package, I use.

@stale

This comment has been minimized.

Copy link

commented May 7, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label May 7, 2019

@LinusU

This comment has been minimized.

Copy link
Member

commented May 8, 2019

I would recommend changing how you import the module. Instead of doing const Reply = require('...'), do const Reply = require('...').default. Would that work?

@stale stale bot removed the stale label May 8, 2019

@stale

This comment has been minimized.

Copy link

commented Aug 7, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Aug 7, 2019

@LinusU

This comment has been minimized.

Copy link
Member

commented Aug 13, 2019

duplicate of #892

@LinusU LinusU closed this Aug 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.