Issue with rollup
See original GitHub issueInstalled via npm
tried import {Diff2Html} from 'diff2html;
but get
path (imported by node_modules/diff2html/src/hoganjs-utils.js, commonjs-external:path) (!) Missing global variable name Use output.globals to specify browser global variable names corresponding to external modules path (guessing ‘path’)
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Issues · rollup/rollup - GitHub
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the...
Read more >How to Bundle JavaScript With Rollup — Step-by-Step Tutorial
Rollup is a next-generation JavaScript module bundler. Author your app or library using ES2015 modules, then efficiently bundle them up into a single...
Read more >Problem with rollup dev server crashing in svelte 3
I suspect this is caused by the plugin rollup-plugin-livereload which attempts to watch the public folder for changes. There are too many files ......
Read more >Issues with Rollups Not Running in Real Time - YouTube
Rollup Helper is meant to be easy to set up and use, but in this series of Troubleshooting Tip videos, I'll review the...
Read more >October 12, 2021—KB5006714 (Monthly Rollup)
Learn more about this security update, including improvements and fixes, any known issues, and how to get the update. Important: Windows 8.1 and ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I found a better solution.
I simply include the diff2html files in angular.json:
( you may also need to add the css, I use my own to handle the resizing of the diff container using flexbox).
And keep importing the Diff2Html from the window object:
const Diff2Html = (window as any).Diff2Html
@shileen It has nothing to do with typings. Just do a :
npm install path