Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vux 引入PopupPicker时报错? #3386

Open
w316431585 opened this issue Jan 30, 2019 · 7 comments

Comments

Projects
None yet
4 participants
@w316431585
Copy link

commented Jan 30, 2019

引用其他组件都好着呢一旦引入PopupPicker就报错?

Uncaught TypeError: Cannot assign to read only property 'exports' of object '#'

@w316431585

This comment has been minimized.

Copy link
Author

commented Jan 30, 2019

123

@iamziyue

This comment has been minimized.

Copy link

commented Jan 31, 2019

  1. 修改文件:node_modules\vux\src\components\picker\animate.js
    应该是第 42 行:module.exports = {,改为:export default {

  2. 修改文件:node_modules\vux\src\components\picker\scroller.js
    应该是第 19 行:const Animate = require('./animate'),改为:import Animate from './animate'

@w316431585

This comment has been minimized.

Copy link
Author

commented Jan 31, 2019

问题解决了, 膜拜大佬。

@Fun005

This comment has been minimized.

Copy link
Contributor

commented Feb 26, 2019

  1. 修改文件:node_modules\vux\src\components\picker\animate.js
    应该是第 42 行:module.exports = {,改为:export default {
  2. 修改文件:node_modules\vux\src\components\picker\scroller.js
    应该是第 19 行:const Animate = require('./animate'),改为:import Animate from './animate'

你好,想请问下,本地修改了这些依赖,到线上环境要怎么办呢?

@wertsafc123

This comment has been minimized.

Copy link

commented Feb 28, 2019

那打包的时候怎么办

@w316431585

This comment has been minimized.

Copy link
Author

commented Mar 4, 2019

正常打包

@Fun005

This comment has been minimized.

Copy link
Contributor

commented Apr 1, 2019

正常打包

正常打包后线上还是这个错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.