Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

195
Views
No puedo obtener datos de nest.js

Estoy tratando de obtener datos de nest.js con vue.js. Recibo este error:

No capturado (en promesa) TypeError: URL relativa.reemplazar no es una función

Códigos:

Api.js(vuejs)

 import axios from "axios"; export default () => { return axios.create({ baseURL: `http://localhost:5000` }); }

Backend-conexión.js (vuejs)

 import Api from './Api' export default { getBasic(){ return Api().post({ headers : { 'Access-Control-Allow-Origin' : `*`, } }); } }

aplicación.controlador.ts (nestjs)

 import { Controller, Get, Post } from '@nestjs/common'; import { AppService } from './app.service'; @Controller() export class AppController { constructor(private readonly appService: AppService) {} @Get() get(): string { return this.appService.getStarted(); } @Post('/') getPosts(): string { return this.appService.getStarted(); } }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!