question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

type declaration can't be shipped into the dist folder -- can't repro

See original GitHub issue

What happens and why it is wrong

Environment

Versions

  • typescript: newest
  • rollup: newest
  • rollup-plugin-typescript2: newest

rollup.config.js

tsconfig.json

package.json

plugin output with verbosity 3

repository

https://github.com/zzzgit/sample

problem

  1. when using tsc command to compile the project, it works fine
  2. when using npm run build to compile it, declaration files won’t be bundled to the dist folder

I can’t find the cause to this problem.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ezolenkocommented, May 9, 2019

Works for me, I see all d.ts files in built/t folder (as specified in tsconfig)

1reaction
ezolenkocommented, May 7, 2019

You don’t seem to be using this plugin? (looking at your sample repo)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maintain src/ folder structure when building to dist
The underlying reason is that one of my source files require d package.json at the root of the project. Once I removed that,...
Read more >
or its corresponding type declarations - You.com - You.com
The "Cannot find module or its corresponding type declarations" error occurs when TypeScript cannot locate a third-party or local module in our project....
Read more >
Pipelines – script is not generating dist folder or it's not visible
Hello! I'm trying to use Bitbucket Pipelines to deploy my Nuxt.js based web app. Below there is my bitbucket pipelines config: image :...
Read more >
2 Server Error Message Reference - MySQL :: Developer Zone
Example server-side error message sent to client programs, as displayed by the mysql ... Message: Can't write, because of unique constraint, to table...
Read more >
User Manual - rust-analyzer
The LSP allows various code editors, like VS Code, Emacs or Vim, to implement semantic features like completion or goto definition by talking...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found