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

how to stop external libraries in build mode #1669

Closed
1 of 3 tasks
xxholly32 opened this issue Jun 20, 2019 · 2 comments
Closed
1 of 3 tasks

how to stop external libraries in build mode #1669

xxholly32 opened this issue Jun 20, 2019 · 2 comments

Comments

@xxholly32
Copy link

  • I confirm that this is an issue rather than a question.

Bug report

Steps to reproduce

i wrote a component with openlayer. can run in dev mode but cant build in build mode

What is expected?

build works

What is actually happening?

build failed with error "window is not definded"

Other relevant information

ssr docs not tell us how to avoid external libraries. i wonder if vuepress docs can show me how to do. or maybe provide a config to stop ssr

  • My VuePress version is lower and euqal than 1.0.0-alpha.47:

    • VuePress version:
    • OS:
    • Node.js version:
    • Browser version:
    • Is this a global or local install?
    • Which package manager did you use for the install?
    • Does this issue occur when all plugins are disabled?
  • My VuePress version is higher than 1.0.0-alpha.47, the following is the output of npx vuepress info in my VuePress project:

@ulivz
Copy link
Member

ulivz commented Jun 22, 2019

See: Browser API Access Restrictions

@ulivz ulivz closed this as completed Jun 22, 2019
@xxholly32
Copy link
Author

ty for your help

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

2 participants