Coder Social home page Coder Social logo

vuejs-br / treinamento-vue3-code Goto Github PK

View Code? Open in Web Editor NEW
184.0 15.0 87.0 2 MB

Código fonte do treinamento de Vue 3 by Vue.js Brasil

Home Page: https://treinamento.vuejsbrasil.org/

JavaScript 53.56% Dockerfile 0.37% Vue 39.23% HTML 2.03% CSS 1.16% TypeScript 3.65%

treinamento-vue3-code's Issues

TypeError: getProcessedPlugins is not a function

Isso ocorreu ao tentar rodar o ambiente de desenvolvimento. O problema em si consiste no arquivo de configuração tailwind.config.js, a linha presets: [] desabilita a configuração padrão do tailwindcss. Segue o link de referência e solução:

  // tailwind.config.js
  module.exports = {
    // ...
-   presets: []
    // ...
  }

401 Unauthorized

Ola,

Estou recebendo 401 em qualquer rota que eu precise do token, mesmo passando o token na requisição.
Recebo o token no login
{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImM1OGNkOGVhLWIyY2MtNGViMi1iYzA5LTMzMTFkM2IwZTQ0YyIsImVtYWlsIjoiZXZhbi55b3VAZ21haWwuY29tIiwibmFtZSI6IkV2YW4gWW91IiwiaWF0IjoxNzA4MTg1MzUwfQ.p671-ED8qa4CeCwFTiAtYoV2Ey5lFc7ddWgCNlxiwSM" }

e ao chamar a rota /users/me:

GET /users/me HTTP/1.1
Accept: application/json, text/plain, /
Accept-Encoding: gzip, deflate, br
Accept-Language: pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImM1OGNkOGVhLWIyY2MtNGViMi1iYzA5LTMzMTFkM2IwZTQ0YyIsImVtYWlsIjoiZXZhbi55b3VAZ21haWwuY29tIiwibmFtZSI6IkV2YW4gWW91IiwiaWF0IjoxNzA4MTg1MzUwfQ.p671-ED8qa4CeCwFTiAtYoV2Ey5lFc7ddWgCNlxiwSM
Connection: keep-alive
Host: localhost:3000
Origin: http://localhost:8080
Referer: http://localhost:8080/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-site
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
sec-ch-ua: "Not A(Brand";v="99", "Google Chrome";v="121", "Chromium";v="121"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"

mesmo passando o token eu recebo 401, alguem consegue me ajudar?

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.