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.

Rollup Build error on v3.3.5

See original GitHub issue

Version

3.3.5

Steps to reproduce

import Typeahead in a react component and run rollup -c

Expected Behavior

It should build without an error

Actual Behavior

Build fails with error below

[!] Error: 'Typeahead' is not exported by node_modules\react-bootstrap-typeahead\lib\index.js
https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module
src\lib\input\TypeaheadInput.js (2:8)
1: import React from 'react';
2: import {Typeahead} from 'react-bootstrap-typeahead';
           ^
3: import 'react-bootstrap-typeahead/css/Typeahead.min.css';
4: import 'react-bootstrap-typeahead/css/Typeahead-bs4.min.css';

error Command failed with exit code 1.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ZabbyCapurincommented, Oct 3, 2019

@ericgio I tried that and it results in Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>'. No idea if I did that correctly though

1reaction
SerdarSanricommented, Feb 23, 2019

I think the issue introduced after 3.2.4. If I rollback to that, rollup works fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

rollup - npm
There are 5343 other projects in the npm registry using rollup. ... compile to a CommonJS module rollup main.js --format cjs --file bundle....
Read more >
Rollup failed to resolve import "jss-plugin-{}" - Stack Overflow
It runs fine on local, but when I use yarn build, I get the following error: [vite]: Rollup failed to resolve import "jss-plugin-{}"...
Read more >
rollup failed to resolve import "react-dom/client" - You.com
Asked Dec 3, 2022 • 0 votes 1 answer. QUESTION ANSWERS ... Which are like compile errors. ... slidevjs/slidevBuild fail: Rollup failed to...
Read more >
rollup-plugin-typescript2 | Yarn - Package Manager
rollup -plugin-typescript2. owner ezolenko3.5mMIT0.34.1TS vulns 0 vulnerabilities. Seamless integration between Rollup and TypeScript. Now with errors.
Read more >
rollup.js
compile to a CommonJS module ('cjs') rollup main.js --file bundle.js ... Exit the build with an error if any warnings occurred, once the...
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