Code Monkey home page Code Monkey logo

Comments (5)

ogrotten avatar ogrotten commented on July 16, 2024 1

Oh btw, the way I fixed my problem:

  1. change rollup-plugin-chrome-extension/package.json > to read "prettier": "^2.3.2", (latest stable)
  2. npm i prettier at project level.
  3. del package-lock.json
  4. npm i at project level.

I didn't have prettier installed at proj level before, and that alone may have fixed it.

from chrome-extension-tools.

jacksteamdev avatar jacksteamdev commented on July 16, 2024

@ogrotten Weird. I've had that same problem, so I'm glad that you found a solution! Svelte is great for Chrome Extensions, isn't it?

I'll see if we can remove prettier. Thanks for isolating the problem.

from chrome-extension-tools.

ogrotten avatar ogrotten commented on July 16, 2024

The way I removed it isn't a fix. It results in the compiler complaining about "prettier is missing". I just did that to see if that instance of prettier was at the core of my problem, and it was.

Other than that, I dug around. . . there's only 1 real reference to it, and it appears to be rewriting the derived html output to be prettied for source. I tried to modify it, but I don't know all the ins n outs.

I don't think prettier is necessary tho... all modern browsers (even safari) will reformat and Pretty Print even the jankiest html source in their inspector.

And yeah . . . I'm liking svelte + extensions!

from chrome-extension-tools.

jacksteamdev avatar jacksteamdev commented on July 16, 2024

You're right tho, we didn't need it!

I was able to remove it, and prettier is only a dev dependency in the latest beta release.

I'm in the middle of adding MV3 support, but all the MV2 tests are passing, so it should work just fine.

from chrome-extension-tools.

ogrotten avatar ogrotten commented on July 16, 2024

Badass! Glad to have helped!

from chrome-extension-tools.

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.