Comments (14)
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.
Yessir. It should be soon -- the code is ready, we're just combing through it again.
from cli.
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.
Can confirm this error, running node v6.9.5 on MacOS Sierra (w/ latest updates)
from cli.
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.
That did it! Looking forward to finishing that tutorial and then digging further into stdlib. Thanks!
from cli.
@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.
@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.
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.
@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.
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.
@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.
@jacoblee93 does the change for the Vue template apply to the Slack template as well?
from cli.
@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)
- 'Bad Request: could not update cache' HOT 2
- Using stdlib behind corporate proxy HOT 4
- pulling(lib get) my service causing error HOT 12
- Error running lib . after lib get HOT 3
- Specify request method in CLI HOT 2
- Publish key in package.json should be set to false by default HOT 4
- encoding issues on stdlib.com using word2vec-pure-js HOT 17
- Can't publish my lib HOT 2
- HTTP POST request on stdlib function returns ParameterError HOT 6
- lib up dev throws "access token is invalid" error HOT 2
- Calling slack Webhooks on external event HOT 2
- Permission to send an SMS has not been enabled for the region indicated by the 'To' number HOT 7
- Creating service from existing dev release of own account HOT 2
- Deployment fails with a specific npm package
- ValidateSamFile
- User must restart the init process if the password is wrong HOT 3
- Use a development resource in a release (production)
- Link New Development Resource - Twitch Account Fails
- undefined@undefined when downloading
- Request for Custom Icons for Discord, Twitter, and GitHub
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.