Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

@next/bundle-analyzer won't generate analyze html files in next.conf.ts (typescript) #555

Closed
sagartalla opened this issue Oct 25, 2019 · 2 comments

Comments

@sagartalla
Copy link

Steps:

  1. create with-typescipt example
  2. add next.config.ts
  3. add @next/bundle-analyze plugin

Reproduction: https://github.com/sagartalla/next-bundle-analyzer-typescript.

@kachkaev
Copy link
Contributor

next.config.ts is not supported, see vercel/next.js#5318

2maintainers: how about checking for this file at startup and throwing an error when it exists, while next.config.js does not?

@timneutkens
Copy link
Member

@kachkaev feel free to PR that. I'll close this issue as it's answered.

sagartalla pushed a commit to sagartalla/next.js that referenced this issue Oct 28, 2019
Timer pushed a commit to vercel/next.js that referenced this issue Oct 30, 2019
* Throw Error for next.config.ts

Ref: vercel/next-plugins#555

* Check for .js else .ts

* Update Error Message

Co-Authored-By: Alexander Kachkaev <alexander@kachkaev.ru>

* Add test case when both next.config.js and next.config.ts exist.

* Remove extra constant CONFIG_FILE_TS and Add check for ts/tsx/json

* Rename test config parameter and add tsx and json files

* Change messege

* change value

* Update next.config.json

* Update next.config.json

* Change message  and add jsx filter

* Adjust

* Simplify test

* adjust
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants