You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
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
Browser version: chrome
Is this a global or local install? local
Which package manager did you use for the install? yarn
i use canvas-nest.js in the vuepress(import CanvasNest from 'canvas-nest.js')it works when i use yarn dev;but it has wrong,when i use yarn build,the wrong information is:
Rendering static HTML...
Rendering page: / FAIL Error rendering /:ReferenceError: window is not defined
at Object. (node_modules/canvas-nest.js/lib/utils.js:11:0)
at
webpack_require
(webpack/bootstrap:25:0)
at Object.module.exports.Object.defineProperty.value (node_modules/canvas-nest.
js/lib/CanvasNest.js:16:0)
at
webpack_require
(webpack/bootstrap:25:0) at Object.module.exports.Object.defineProperty.value (node_modules/canvas-nest.
js/lib/index.js:7:0)
at
webpack_require
(webpack/bootstrap:25:0)
so i do not know how to resolve it,i need help,thinks..