Code Monkey home page Code Monkey logo

Comments (1)

loucyx avatar loucyx commented on June 12, 2024

Hi, @roee030!

As you can see from the error, the problem comes from ESLint. It can be a number of things that are unrelated to @vangware/cron, so I recommend you check the following:

  1. Make sure eslint (and its plugins) is up-to-date: Probably, an outdated version of ESLint cannot figure out ESM imports.
  2. Check your node version and ensure you're on an LTS or bigger version (18 or above): Old versions of Node can't resolve ESM packages such as @vangware/cron.
  3. If you're using VSCode, make sure its ESLint plugin is updated: An old version of an ESLint plugin could be giving you an error that is not there.

I also recommend you remove the import/no-unresolved rule (let TypeScript resolve that using a tsconfig.json file, even if you aren't using TS directly, you can use that feature with vanilla JavaScript) and instead have import/no-extraneous-dependencies enabled, which will give you an error if you try to import from somewhere not declared in your dependencies. If you're interested, you can check all the rules we use at Vangware, here.

from cron.

Related Issues (2)

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.