ZachJW34 / nx-plus

Collection of Nx Community Plugins
MIT License
302 stars 51 forks source link

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

Open avxkim opened 1 year ago

avxkim commented 1 year ago

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


4. 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.
5. Start a project