Git Product home page Git Product logo

Comments (8)

thiagovilla avatar thiagovilla commented on August 16, 2024 2

I've been having the opposite error. Commenting here in case it's related. (Is it?)

The following code...

{{ define "main" }}
  <main style="max-width: 960px">
    {{ .Content }}
  </main>
{{ end }}

...formats to this:

{{ define "main" }}
  <main style="max-width: 960px"
    {{ .Content }}
  </main
{{ end }}

The closing bracket > is stripped off from the open and closing <main>...</main> tag.

from prettier-plugin-go-template.

NiklasPor avatar NiklasPor commented on August 16, 2024 1

If this is not working for you, please re-open this issue ๐Ÿ‘

from prettier-plugin-go-template.

philoserf avatar philoserf commented on August 16, 2024 1

npm has beta 8 @andreseduardop
https://www.npmjs.com/package/prettier-plugin-go-template/v/0.0.11-beta.8

i just checked again. plus this repo has no release, no tag, and no branch identified with a beta 9.

from prettier-plugin-go-template.

andreseduardop avatar andreseduardop commented on August 16, 2024

I have tried again, using Beta version 5.
npm install --save-dev [email protected]

But, now Prettier reports in the console the error "Prettier process finished with exit code 2."
This is the complete console output:
output-console-beta-5.txt

The beta 5 test project:
test-project-beta-5.zip

from prettier-plugin-go-template.

NiklasPor avatar NiklasPor commented on August 16, 2024

Both of the cases should be resolved with [email protected] ๐Ÿงผ

@thiagovilla @andreseduardop

from prettier-plugin-go-template.

andreseduardop avatar andreseduardop commented on August 16, 2024

Thanks, @NiklasPor

I am trying to install beta 9, with:
npm install --save-dev [email protected]

But I get:

npm ERR! code ETARGET
npm ERR! notarget No matching version found for [email protected].
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

from prettier-plugin-go-template.

NiklasPor avatar NiklasPor commented on August 16, 2024

Sorry, I accidentally only published it to my local registry. Should be available now ๐Ÿ˜

[email protected]

from prettier-plugin-go-template.

philoserf avatar philoserf commented on August 16, 2024

as are beta11 and beta13 for the record

from prettier-plugin-go-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.