primatejs / app Goto Github PK
View Code? Open in Web Editor NEWPrimate template app
Home Page: https://primatejs.com
License: MIT License
Primate template app
Home Page: https://primatejs.com
License: MIT License
npm start
> @primate/[email protected] start
> npx primate
primate 0.30.1 in startup
-- primate running init hooks
-- primate/store loading Post User ns.Post
-- primate/store all stores nominal
-- primate/i18n loading de-DE de en-US en
-- primate/i18n all locales nominal
-- primate running stage hooks
!! primate/binding/go the Go route go/index.go contains the following error
/bin/sh: go: command not found
++ fix the Go error
-> https://primatejs.com/modules/primate/binding/go#error-in-go-route
ErrorInGoRoute: the Go route go/index.go contains the following error
/bin/sh: go: command not found
at Object.new (file:///Users/apple/primate/app/node_modules/primate/src/Logger.js:31:19)
at Object.throw (file:///Users/apple/primate/app/node_modules/primate/src/Logger.js:39:19)
at Object.route (file:///Users/apple/primate/app/node_modules/@primate/binding/src/bindings/go/module.js:181:40)
at async post (file:///Users/apple/primate/app/node_modules/primate/src/hooks/stage.js:37:5) {
level: 0,
fix: 'fix the Go error',
module: 'primate/binding/go'
}
~~ bye
apple@apples-MBP primate % which go
/opt/homebrew/opt/go/libexec/bin/go
test
$ git clone
$ cd primate-app
$ npm i && npx -y primate
up to date, audited 174 packages in 1s
26 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
(node:35984) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
[info] primate 0.11.0
[info] running on localhost:6161
[error] Spread syntax requires ...iterable[Symbol.iterator] to be a function
The [error] Spread syntax requires ...iterable[Symbol.iterator] to be a function
is repeated every time a page is loaded on localhost:6161
:
$ curl -i http://localhost:6161/
HTTP/1.1 500 Internal Server Error
Date: Tue, 14 Mar 2023 23:06:43 GMT
Connection: keep-alive
Keep-Alive: timeout=5
Transfer-Encoding: chunked
Arm64 macos. Tool versions:
$ node --version
v19.7.0
$ npm --version
9.6.1
$ npx --version
$ ls -l =node
lrwxr-xr-x 1 mkm admin 30 Mar 15 00:01 /opt/homebrew/bin/node -> ../Cellar/node/19.7.0/bin/node
$ ls -l =npm
lrwxr-xr-x 1 mkm admin 38 Mar 15 00:02 /opt/homebrew/bin/npm -> ../lib/node_modules/npm/bin/npm-cli.js
9.6.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.