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

ssr状态下,会出现依赖(dependencies配置)找不到的情况 #24

Open
NoeyNoi opened this issue May 19, 2022 · 0 comments
Open

Comments

@NoeyNoi
Copy link

NoeyNoi commented May 19, 2022

import createLoadRemoteModule, {
createRequires
} from '@paciolan/remote-module-loader'

const dependencies = {
vue: require('vue')
}

const requires = createRequires(dependencies)
export default createLoadRemoteModule({ requires })

使用时:
ReferenceError: e is not defined, 原因是vue依赖未加载

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant