Giter VIP home page Giter VIP logo

Comments (5)

RobertoGallego avatar RobertoGallego commented on May 29, 2024 1

Hello i get this issue, i fixed installing tsconfig-paths, u can fixed changing the paths from where the error is comming:

- /home/react/Desktop/friends-backend/src/loaders/logger.ts
- /home/react/Desktop/friends-backend/src/app.ts

@/config to the relative path and not using the absolute (ex: ../../config)

from bulletproof-nodejs.

Nikola-Milovic avatar Nikola-Milovic commented on May 29, 2024

@nayyaung9 how did your resolve this? I am using the "@/config" as import path but still getting errors

@RobertoGallego is any extra setup needed besides installing tsconfig-paths? I tried installing it and I get the same error. (same tsconfig as this repo)

// loaders/logger.ts
import config from "@/config";

from bulletproof-nodejs.

nayyaung9 avatar nayyaung9 commented on May 29, 2024

@Nikola-Milovic Using absolute import in local is work well. But when deploying on heroku. it show "module not found" :((
But I used with relative paths in heroku. @RobertoGallego Is there any extra config for that?

from bulletproof-nodejs.

Nikola-Milovic avatar Nikola-Milovic commented on May 29, 2024

@nayyaung9 can you reopen the issue? It seems we could use some help on this 🤣

from bulletproof-nodejs.

RobertoGallego avatar RobertoGallego commented on May 29, 2024

Hello, i didnt try to run with Heroku, I gave u 2 options for the issue, that works for me, i made some changes for the tsconfig-paths, in the package.json i modified my api like this: "api": "nodemon --exec ts-node -r tsconfig-paths/register src/index.ts",
then change the app.js for index.js

cheers hope u can fix

from bulletproof-nodejs.

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.