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.

Module export/import issues with carbon mapper

See original GitHub issue

The same thing happened before with the DDF2 packages, so I guess the fix should be trivial. I’m getting:

ERROR in ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/index.js
Module not found: Error: Can't resolve 'carbon-components-react/es/components/ButtonSet/ButtonSet.js' in '/home/skateman/Repositories/ManageIQ/manageiq-ui-classic/node_modules/@data-driven-forms/carbon-component-mapper/dist/esm'

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
skatemancommented, Oct 2, 2020

Upgrading carbon-components-react to ~7.21.0 fixed the issue, but I still see some warnings:

WARNING in ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/dual-list-select.js 1:7887-7888
"export 'default' (imported as 'h') was not found in 'carbon-components-react/es/components/StructuredList/StructuredList.js'
 @ ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/index.js
 @ ./app/javascript/forms/data-driven-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/components/security-groups/update-nsxt-security-group-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/packs/component-definitions-common.js

WARNING in ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/dual-list-select.js 1:7910-7911
"export 'default' (imported as 'h') was not found in 'carbon-components-react/es/components/StructuredList/StructuredList.js'
 @ ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/index.js
 @ ./app/javascript/forms/data-driven-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/components/security-groups/update-nsxt-security-group-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/packs/component-definitions-common.js

WARNING in ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/dual-list-select.js 1:7933-7934
"export 'default' (imported as 'h') was not found in 'carbon-components-react/es/components/StructuredList/StructuredList.js'
 @ ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/index.js
 @ ./app/javascript/forms/data-driven-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/components/security-groups/update-nsxt-security-group-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/packs/component-definitions-common.js

WARNING in ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/dual-list-select.js 1:7956-7957
"export 'default' (imported as 'h') was not found in 'carbon-components-react/es/components/StructuredList/StructuredList.js'
 @ ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/index.js
 @ ./app/javascript/forms/data-driven-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/components/security-groups/update-nsxt-security-group-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/packs/component-definitions-common.js

WARNING in ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/dual-list-select.js 1:8156-8157
"export 'default' (imported as 'h') was not found in 'carbon-components-react/es/components/StructuredList/StructuredList.js'
 @ ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/index.js
 @ ./app/javascript/forms/data-driven-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/components/security-groups/update-nsxt-security-group-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/packs/component-definitions-common.js

WARNING in ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/dual-list-select.js 1:8247-8248
"export 'default' (imported as 'h') was not found in 'carbon-components-react/es/components/StructuredList/StructuredList.js'
 @ ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/index.js
 @ ./app/javascript/forms/data-driven-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/components/security-groups/update-nsxt-security-group-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/packs/component-definitions-common.js

WARNING in ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/dual-list-select.js 1:8477-8478
"export 'default' (imported as 'h') was not found in 'carbon-components-react/es/components/StructuredList/StructuredList.js'
 @ ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/index.js
 @ ./app/javascript/forms/data-driven-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/components/security-groups/update-nsxt-security-group-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/packs/component-definitions-common.js

WARNING in ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/dual-list-select.js 1:8606-8607
"export 'default' (imported as 'h') was not found in 'carbon-components-react/es/components/StructuredList/StructuredList.js'
 @ ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/index.js
 @ ./app/javascript/forms/data-driven-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/components/security-groups/update-nsxt-security-group-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/packs/component-definitions-common.js

WARNING in ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/wizard.js 1:11483-11484
"export 'default' (imported as 'w') was not found in 'carbon-components-react/es/components/ProgressIndicator/ProgressIndicator.js'
 @ ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/component-mapper.js
 @ ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/index.js
 @ ./app/javascript/forms/data-driven-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/components/security-groups/update-nsxt-security-group-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/packs/component-definitions-common.js

WARNING in ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/wizard.js 1:11709-11710
"export 'default' (imported as 'w') was not found in 'carbon-components-react/es/components/ProgressIndicator/ProgressIndicator.js'
 @ ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/component-mapper.js
 @ ./node_modules/@data-driven-forms/carbon-component-mapper/dist/esm/index.js
 @ ./app/javascript/forms/data-driven-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/components/security-groups/update-nsxt-security-group-form.jsx
 @ /home/skateman/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/manageiq-providers-nsxt-8179222f0f85/app/javascript/packs/component-definitions-common.js

1reaction
skatemancommented, Oct 2, 2020
cat package.json | grep carbon
    "@carbon/icons-react": "~10.11.0",
    "@carbon/themes": "~10.12.0",
    "@data-driven-forms/carbon-component-mapper": "~2.9.0",
    "carbon-components": "~10.12.0",
    "carbon-components-react": "~7.12.0",
Read more comments on GitHub >

github_iconTop Results From Across the Web

FAQ - Carbon Mapper
Carbon Mapper is both a nonprofit organization and a program to monitor and help accelerate reductions in global methane and carbon dioxide emissions....
Read more >
FACT SHEET: President Biden Announces New Initiatives at ...
Today at the 27th U.N. Climate Conference (COP27), President Biden will announce new initiatives to strengthen U.S. leadership tackling the ...
Read more >
Export-Import Bank: Background and Legislative Issues
The Export-Import Bank of the United States (Ex-Im Bank, EXIM Bank, or the Bank), ... Members of Congress may examine issues related to...
Read more >
Breaking down barriers on PV trade will facilitate global ...
The global trade of solar photovoltaic (PV) products substantially contributes to increases in solar power generation and carbon emissions ...
Read more >
CDP Climate Change 2022 Reporting Guidance
In addition, organizations in the financial sector receive an additional module at the end of the questionnaire to collect information on the topics...
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