Code Monkey home page Code Monkey logo

Comments (14)

keithwhor avatar keithwhor commented on May 20, 2024 2

This should fix the issue right now;

Add: "build": "legacy" under the "stdlib" field in package.json.

LMK if you still have trouble. We're pushing a new release by Monday and a release candidate was accidentally published to NPM. (Hence 3.0.0-rc9 for your version.) I thought I tore it down but apparently it's still running as the latest version.

from cli.

jacoblee93 avatar jacoblee93 commented on May 20, 2024 1

Yessir. It should be soon -- the code is ready, we're just combing through it again.

from cli.

aggierunner avatar aggierunner commented on May 20, 2024 1

I'm having this issue now too, but changing build to legacy as suggested above, fixes the json parser error.

Although that fixes the json error, I'm getting a new error when I try to test the function (lib . HelloWorld) Error: Cannot find module '/path/stdlib/myID/alexa/functions/index.js'

Any suggestions? It looks like index.js is inside a main folder, but something is expecting it to be in the functions directory...

Versions:

  • lib: 3.0.3
  • nodejs: 6.11.0
  • npm: 3.10.10

from cli.

marc-se avatar marc-se commented on May 20, 2024

Can confirm this error, running node v6.9.5 on MacOS Sierra (w/ latest updates)

from cli.

marc-se avatar marc-se commented on May 20, 2024

Thanks for your fast reply @keithwhor - it doesn't work for me, but don't worry, I'll wait till the monday release arrives 👍🏼

from cli.

mikesprague avatar mikesprague commented on May 20, 2024

That did it! Looking forward to finishing that tutorial and then digging further into stdlib. Thanks!

from cli.

mikesprague avatar mikesprague commented on May 20, 2024

@marc-se I know this is stating the obvious, but just in case (since the suggested fix worked for me), if you have the following "build": "faaslang", in your package.json under the "stdlib" field, you should change faaslang to legacy - versus adding an additional entry.

from cli.

keithwhor avatar keithwhor commented on May 20, 2024

@marc-se and @mikesprague --- Update lib.cli to 3.0.1 (or newer) and follow the updated instructions on the Medium article.

Should work A-OK now :).

from cli.

prodrammer avatar prodrammer commented on May 20, 2024

I'm getting this when attempting to 'lib http' the vue template example at:

https://docs.stdlib.com/main/#/templates/vue

I'm running:

  • node 6.10.3
  • npm 3.10.10
  • lib 3.0.2
  • macOS Sierra 10.12.2

If I change the build setting in package.json from "faaslang" to "legacy", 'lib http' works.

@keithwhor: Is the release pushed? Is faaslang supported?

from cli.

jacoblee93 avatar jacoblee93 commented on May 20, 2024

@ryanhaney We'll be pushing an updated version of the Vue template to support faaslang very soon. We're in the process of phasing out all of our legacy templates. We will let you know when it's ready!

from cli.

prodrammer avatar prodrammer commented on May 20, 2024

@jacoblee93:

I assume the templates that will be updated are located at https://github.com/stdlib/utils.templates.

If so, I can watch that repo. Please confirm. Thanks!

from cli.

jacoblee93 avatar jacoblee93 commented on May 20, 2024

@aggierunner We updated our Vue template to work with FaaSlang, but we still have to update our Alexa template.

Is there a file called main.js in your myID/alexa/functions directory? If there is, renaming that to index.js and removing the context argument from the function may work for a legacy build.

from cli.

blondesalad87 avatar blondesalad87 commented on May 20, 2024

@jacoblee93 does the change for the Vue template apply to the Slack template as well?

from cli.

jacoblee93 avatar jacoblee93 commented on May 20, 2024

@blondesalad87 yes, it should all work fine now. Let's continue the conversation on the other issue that you opened!

from cli.

Related Issues (20)

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.