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.

Is there a problem in "window" in package.json

See original GitHub issue

======== FORM ========

NWJS Version: 0.48.4 Operating System: windows 10 build 18362

Expected behavior

The window opened normally

Actual behavior

After a few minutes, the window didn’t appear

How to reproduce

    1. create an index.html and icon.svg
    1. create ‘package.json’ like this:
{
  "name": "forum-desktop",
  "title": "forum",
  "main": "index.html",
  "window":[
    {
      "width": 1024,
      "height": 768,
      "icon": "./icon.svg"
    }
  ],
  "maintainers":[{
   "name": "System32",
   "email": "3412913920@qq.com",
   "web": "https://sysdl132.github.io"
  }],
  "licenses": [
   {
       "type": "GPLv2",
       "url": "http://www.example.com/licenses/gpl.html"
   }
  ]
}
    1. start the application
    1. Then I can’t start it

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
sysdl132commented, Oct 7, 2020

@Blatman Did you mean this?

<part of package.json>
  "window":
    {
      "width": 1024,
      "height": 768,
      "icon": "./icon.svg"
    },
0reactions
sysdl132commented, Oct 7, 2020

Knew it. I can use the PNG format.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows gives error with package.json file
Seems like there is an error in your package.json. The one in C:\Users\zm2759\AppData\Roaming\npm-cache\wordwrap\0.0.2\package\package.json ...
Read more >
How Do I Fix Package.json Problems?
These package.json problems are generally caused by Windows 10 Operating System-related file corruption, or in some cases, if the file has been accidentally ......
Read more >
[BUG] in package.json scripts on Windows, \n gobbles the ...
My environment is: Windows PowerShell 5.1.18362.752; npm 6.14.6; node v12.18.4. How. Current Behavior. Everything until the \n is executed.
Read more >
package.json
This document is all you need to know about what's required in your package.json file. It must be actual JSON, not just a...
Read more >
Create a package.json File
Running npm init you already have a package.json will attempt to update the existing file, instead of creating a new one. For example,...
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