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.

Nuxt 2.3.4 - exports is not defined after update to rc.13

See original GitHub issue

Just updated to latest BootstrapVue v. 2.0.0-rc.13 and my app started to fail. I use custom nuxt plugin for partial component import nuxt.config.js :

import Vue from 'vue'
import Collapse from 'bootstrap-vue/es/components/collapse'
import Dropdown from 'bootstrap-vue/es/components/dropdown'

Vue.use(Collapse)
Vue.use(Dropdown)

and I also enabled transpilation of bt-vue es files in nuxt.config.js

transpile: ['bootstrap-vue']

but still I’m getting an error

vendors.app.js:9742 Uncaught ReferenceError: exports is not defined
    at Module../node_modules/bootstrap-vue/es/utils/array.js (vendors.app.js:9742)
    at __webpack_require__ (runtime~app.js:787)
    at fn (runtime~app.js:150)
    at Object../node_modules/bootstrap-vue/es/mixins/listen-on-root.js (vendors.app.js:9639)
    at __webpack_require__ (runtime~app.js:787)
    at fn (runtime~app.js:150)
    at Object../node_modules/bootstrap-vue/es/components/collapse/collapse.js (vendors.app.js:7530)
    at __webpack_require__ (runtime~app.js:787)
    at fn (runtime~app.js:150)
    at Object../node_modules/bootstrap-vue/es/components/collapse/index.js (vendors.app.js:7760)

it was working in v. 2.0.0-rc-11, was something related to this process changed in latest release?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
tmorehousecommented, Feb 25, 2019

@ChunAllen we think this should be fixed in 2.0.0-rc.14, as we now have Babel include the helper code directly in each es transpiled module.

2reactions
AndrewBogdanovTSScommented, Mar 11, 2019

@tmorehouse I’ve found out where the issue was. Previously I was force compiling bootstrap-vue with

transpile: ['bootstrap-vue']

but apparently it’s not needed anymore. Once I’ve removed that from my nuxt.config.js - the error went away 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typescript ReferenceError: exports is not defined
It is the root of the error message, and after removing "module": "commonjs", , it will vanish. Share.
Read more >
TFM Part 2 Chapter 4700 - Treasury Financial Manual
This Treasury Financial Manual (TFM) chapter prescribes how federal entities provide data for the Financial Report of the United States Government (FR) ...
Read more >
Dataproc release notes - Google Cloud
Announcements of new and updated Dataproc and Dataproc Serverless features, bug fixes, known issues, and deprecated functionality.
Read more >
WorkManager - Android Developers
New Features. An ability to update WorkRequests in a non-intrusive way was added, preserving original enqueue time, chaining etc. See WorkManager.
Read more >
PJM Manual 13:
A condition that requires implementation of emergency procedures as defined in the manuals. The PJM Manual for Emergency Operations consists ...
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