Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nuxt-tsconfig-relative-paths

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-tsconfig-relative-paths

Nuxt Team has fixed relative paths issue in Nuxt 3.7.0. Please remove this module if you had it and don't use if you wanted to.

  • 1.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
decreased by-76.6%
Maintainers
1
Weekly downloads
 
Created
Source

Skip using this module

Nuxt Team has fixed relative paths issue in Nuxt 3.7.0. Please remove this module if you had it and don't use if you wanted to.

Nuxt TSConfig Relative Paths

This module allows you to rollback to relative paths in tsconfig for Nuxt 3.6.x. See https://github.com/nuxt/nuxt/issues/21827 for more information.

Module only works in development mode and on ~3.6 versions.

Configuration

If you want to silence upgrade warning for now, you can do that via Nuxt Config:

export default defineNuxtConfig({
  tsconfigRelativePaths: {
    disableUpgradeWarning: true,
  },
});

#Components alias

As #components are inserted AFTER custom module hooks I wasn't able to modify this entry. The reason behind this is that for example in prepare hook "prepare:types" is the last hook. #components are being added AFTER "last hook", therefore without tricky solutions I will not be able to replace #components path.

If you need types, as workaround you can use ##components alias for now. But I highly recommend to stay on #components and upgrade to Nuxt ^3.7 ASAP.

Quick Setup

  1. Add nuxt-tsconfig-relative-paths dependency to your project
# Using pnpm
pnpm add -D nuxt-tsconfig-relative-paths

# Using yarn
yarn add --dev nuxt-tsconfig-relative-paths

# Using npm
npm install --save-dev nuxt-tsconfig-relative-paths
  1. Add nuxt-tsconfig-relative-paths to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    'other-modules',
    'nuxt-tsconfig-relative-paths'
  ]
})

FAQs

Package last updated on 26 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc