Giter VIP home page Giter VIP logo

now-experience-component-examples's People

Contributors

srikanth-uppala avatar suppala123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

now-experience-component-examples's Issues

now-cli type error

now-cli develop command don't work.

There is a type error on the t variable here the is the fix:

Go to the @servicenow/cli-pre-post-tasks thne go to the file common/tasks/dev-server.js

	return o.writeFileSync(s.join(n, ".pid"), t /*cast t to sting*/+""), i.unref(), {
		killed: e,
		spawned: t
	}

null error on component build

There is a problem with the now-cli develop command, You need to add a null safety check:

You can't retrieve the name of a package if this one is undefined

TypeError: Cannot destructure property 'name' of 'u(...)' as it is undefined.

To fix it, go to the @servicenow/ui-build-component-utils lib then go to the file is-component.js

    module.exports = r => {
        const a = readPackageConfig(r);
        const l = c(a, "build");
        if ("library" === l || "distribution" === l) return !1;
        if ("app:dynamic" === e && i(a, "uxFramework")) return !o(c(a, "uxFramework.components", {}));
        const d = s(r, ".builderrc");
        const p = n(d) && t(d, "utf8");
        const {
            name: m
        } = u(r) /*Add this in case u is undefined */ || {name: ""};
        return 0 === m.indexOf("sn-component-") || p && (-1 !== p.indexOf("@servicenow/cli-component-archetype") || -1 !== p.indexOf("@tectonic/component-archetype") || -1 !== p.indexOf("sn-seismic-archetype"))
    };

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.