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

nuxt-ts --config-file=./node_modules/xxx/conifg.ts con't not running #261

Closed
diqye opened this issue Dec 30, 2019 · 2 comments
Closed

nuxt-ts --config-file=./node_modules/xxx/conifg.ts con't not running #261

diqye opened this issue Dec 30, 2019 · 2 comments

Comments

@diqye
Copy link

diqye commented Dec 30, 2019

Describe the bug

next-ts --config-file=./node_modules/aaa/nuxt.dev.config.ts

don't run config file as typescript

Expected behavior

image

 Invalid or unexpected token                                   19:07:04

  let resolve = (dir: string) => path.join(__dirname, '..', dir)
  ^
  
  SyntaxError: Invalid or unexpected token

Screenshots
image

Additional context
Add any other context about the problem here.

@danielroe
Copy link
Member

@ppzzppz This is because ts-node won't interpret TS files located within node_modules.

See this comment for a response to a similar issue.

@diqye
Copy link
Author

diqye commented Dec 31, 2019

@danielroe thanks

@diqye diqye closed this as completed Dec 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants