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

src is undefined #211

Open
1 task done
missma19 opened this issue Jun 25, 2024 · 1 comment
Open
1 task done

src is undefined #211

missma19 opened this issue Jun 25, 2024 · 1 comment

Comments

@missma19
Copy link

Issue Type

  • Bug Fix

Current/Missing Behaviour

I'm getting the error: "Fatal error: Expected src to be a string or an array of strings. Got undefined instead.", when running nwjs:src.

Expected/Proposed Behaviour

src is set to the string, which is set in the code.

nwjs: {
	options: {
			xxx
	},
	src: "./build/src_<%= packageconfig.language %>/**/*",
	},

Additional Info

I get the same error from version 4.6.1 to 4.7.7.
Version 4.6.0 gives a totally different error.

The grunt-file works in version 3.7.1 without problems.

  • Operating System: docker build linux/amd64
  • Node version: 22
  • NW.js version: 0.88.0
@ayushmanchhabra
Copy link
Contributor

ayushmanchhabra commented Jul 14, 2024

@missma19 What version of grunt-nw-builder did you upgrade from? If you have glob enabled, then wrap the src string in an array:

src: [ "./path/to/package.json", "./build/src_<%= packageconfig.language %>/**/*" ]

Also copy of the stack trace would 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