Giter VIP home page Giter VIP logo

Comments (16)

VDS13 avatar VDS13 commented on July 28, 2024

@mgorodetski, Hi!
Can you show the error output and code?

from telegram-inline-calendar.

mgorodetski avatar mgorodetski commented on July 28, 2024

sure, this is import in my bot:
image
same issue at node-modules:
image

from telegram-inline-calendar.

VDS13 avatar VDS13 commented on July 28, 2024

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.

mgorodetski avatar mgorodetski commented on July 28, 2024

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.

VDS13 avatar VDS13 commented on July 28, 2024

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.

VDS13 avatar VDS13 commented on July 28, 2024

It's just that if you look at the files of this version in npm, then the export is specified there correctly.
image
For some reason, the screenshot from node_modules is wrong.
image

from telegram-inline-calendar.

mgorodetski avatar mgorodetski commented on July 28, 2024

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:
image

from telegram-inline-calendar.

VDS13 avatar VDS13 commented on July 28, 2024

Are you using typescript?

from telegram-inline-calendar.

mgorodetski avatar mgorodetski commented on July 28, 2024

Are you using typescript?

Nope, js

from telegram-inline-calendar.

VDS13 avatar VDS13 commented on July 28, 2024

Can you show the contents of package.json?

from telegram-inline-calendar.

mgorodetski avatar mgorodetski commented on July 28, 2024

Can you show the contents of package.json?
Sure, here it is:
image

from telegram-inline-calendar.

VDS13 avatar VDS13 commented on July 28, 2024

Does the error show up after starting the bot or only in VS Code itself?

from telegram-inline-calendar.

mgorodetski avatar mgorodetski commented on July 28, 2024

in VS Code itself. Just ignore that?

from telegram-inline-calendar.

VDS13 avatar VDS13 commented on July 28, 2024

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.

mgorodetski avatar mgorodetski commented on July 28, 2024

Спасибо за твой труд и за объяснения!

from telegram-inline-calendar.

VDS13 avatar VDS13 commented on July 28, 2024

Glad to help, @mgorodetski)

from telegram-inline-calendar.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.