Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS18002: The 'files' list in config file 'tsconfig.json' is empty. #285

Open
avxkim opened this issue Mar 20, 2023 · 0 comments
Open

TS18002: The 'files' list in config file 'tsconfig.json' is empty. #285

avxkim opened this issue Mar 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@avxkim
Copy link

avxkim commented Mar 20, 2023

Current Behavior

nx serve appname causes an error: " TS18002: The 'files' list in config file 'tsconfig.json' is empty."

Expected Behavior

no errors

Steps to Reproduce

  1. Create a lib using nx-plus/vue: nx g @nx-plus/vue:lib <name>
  2. Include this lib as module in Nuxt 2
  3. Use this lib as a nuxt module and include a plugin.ts inside it:
import type { Module } from '@nuxt/types'
import { resolve } from 'path'

const sharedModule: Module = function () {
  this.addPlugin({
    src: resolve(__dirname, 'lib/plugins/plugin.js'),
    mode: 'client',
  })
}

export default sharedModule
  1. plugin.ts won't be transpiled, so we will get an error in the title. But if use plain js file: plugin.js, then there no errors, because nothing should be transpiled.
  2. Start a project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant