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

188
Views
I can't get data from nest.js

I'm trying to get data from nest.js with vue.js. I getting this error:

Uncaught (in promise) TypeError: relativeURL.replace is not a function

Codes :

Api.js(vuejs)

import axios from "axios";

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

Backend-connection.js(vuejs)

import Api from './Api'

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

app.controller.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!