Comments (16)
@mgorodetski, Hi!
Can you show the error output and code?
from telegram-inline-calendar.
sure, this is import in my bot:
same issue at node-modules:
from telegram-inline-calendar.
A few more questions:
What version of the package is used on the screenshots?
Is there a type: module
parameter in package.json
?
Have you edited node_modules
yourself?
from telegram-inline-calendar.
What version of the package is used on the screenshots? "telegram-inline-calendar": "^2.0.3"
Is there a type: module parameter in package.json? yes
Have you edited node_modules yourself? no, besides adding error output in th comment
from telegram-inline-calendar.
The problem should be solved if in the second screen replace the line:
export {Calendar} from './src/Calendar.js';
In ESM
, the file format must be specified explicitly during import/export (.js
, .mjs
).
from telegram-inline-calendar.
It's just that if you look at the files of this version in npm
, then the export is specified there correctly.
For some reason, the screenshot from node_modules
is wrong.
from telegram-inline-calendar.
Sorry, I forget I already tried it and didn't amend it back before replying to you above. Anyway it doesn't solve the problem:
from telegram-inline-calendar.
Are you using typescript?
from telegram-inline-calendar.
Are you using typescript?
Nope, js
from telegram-inline-calendar.
Can you show the contents of package.json
?
from telegram-inline-calendar.
Can you show the contents of
package.json
?
Sure, here it is:
from telegram-inline-calendar.
Does the error show up after starting the bot or only in VS Code itself?
from telegram-inline-calendar.
in VS Code itself. Just ignore that?
from telegram-inline-calendar.
VS Code throws this error because it uses TS. When starting the bot, there should be no problems. In the future I will release a release under TS.
from telegram-inline-calendar.
Спасибо за твой труд и за объяснения!
from telegram-inline-calendar.
Glad to help, @mgorodetski)
from telegram-inline-calendar.
Related Issues (11)
- 'Bad Request' Error HOT 4
- Could not find a declaration file for module HOT 18
- Is it possible to not display a specific date and time? HOT 9
- I can't switch months 😞 HOT 6
- Could not find a declaration file for module '../utilites/calendar/Calendar.js'. HOT 6
- Changing days order HOT 1
- Change message HOT 13
- Error when trying to move through months HOT 13
- TypeError: NavCalendar is not a constructor HOT 3
- Get the wrong time when calling clickButtonCalendar HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegram-inline-calendar.