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.

Build Web npm run build:web

See original GitHub issue

After running npm run build:web and running on an http server with http-server the folder dist / web I have the following error in the console and the page is blank

captura de tela 2018-06-01 as 14 56 53
  • Node version: v8.6.0
  • NPM version: 5.6.0
  • Mac OS: 10.13.4

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

4reactions
hanshou101commented, Jun 19, 2019

The #857 says #751 has solved this problem.

after the exclusion of [electron-vuex] in the build: web environment, $ yarn run build: web can be packaged normally, and the index.html file can run normally without error.

4reactions
CS-Taocommented, Jul 6, 2018

I fixed it by catching the exception of require('electron').shell.openExternal(url).

The changes in my codes as follows:

src/renderer/main.js:

image

src/renderer/components/GithubCorner/index.vue:

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

node-build-web-app - npm
Start using node-build-web-app in your project by running `npm i ... A Build System for Angular 2 web app development using the Gulp...
Read more >
build:web fails inside npm script with typescript - Stack Overflow
We are using the expo-cli as a local dependency to run build:web from a npm script without global installation of expo-cli.
Read more >
Let's Build a Web App with NPM and Express - This Dot Labs
We'll be covering how npm is used, show some examples of importing express from npm and how to utilize it for running a...
Read more >
Tools: building website abends - Development - Joplin Forum
npm run buildWebsite > buildWebsite > npm run buildApiDoc && node ./packages/tools/build-website.js && npm run buildPluginDoc && npm run ...
Read more >
Multiple build and deploy with different configurations
stages: - buildWeb - deployWeb - buildApp - deployApp build web: image: ... src/config.js - npm run build artifacts: name: web expire_in: 1 ......
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