Git Product home page Git Product logo

Comments (5)

david-tejada avatar david-tejada commented on May 31, 2024 1

Thanks for your help! In my case I also got the errors running npm run lint. I also hadn't install typescript in the project, but that didn't solve the issue. What I was missing was the tsconfig.json file. Once I created the file and reloaded the window all the errors went away.

from browser-extension-template.

david-tejada avatar david-tejada commented on May 31, 2024

Another similar example, it's really strange because it clearly says that colorRed is of type number:

Screenshot 2022-03-25T13-30-05 - Code

from browser-extension-template.

fregante avatar fregante commented on May 31, 2024

I don't know why it keeps saying that it is of type any

I don't know either! I was able to replicate the issue but it went away after I updated the XO extension to v3.9.0. This is an IDE error, not a project error; Try running npm run lint and the error won't appear there.

Additionally make sure:

  • you installed typescript itself in the project
  • you created the tsconfig.json at the root of the project as suggested by @sindresorhus/tsconfig

from browser-extension-template.

fregante avatar fregante commented on May 31, 2024

Screen Shot

from browser-extension-template.

aspiers avatar aspiers commented on May 31, 2024

A similar problem happens even with tsconfig.json, as described in #71.

from browser-extension-template.

Related Issues (20)

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.