frontarm / navi

🧭 Declarative, asynchronous routing for React.
https://frontarm.com/navi/
MIT License
2.07k stars 71 forks source link

Fail to build using navi-script build #169

Open tom555my opened 4 years ago

tom555my commented 4 years ago

I started the project using create-react-navi-app. When I run yarn build, I got the following result:

navi-scripts: No config file found, using default config.
Using create-react-app renderer...
[html]     index.html
[ohshit] An error occured while building your app
navigation.getSteadyValue is not a function
TypeError: navigation.getSteadyValue is not a function
    at renderPageToString (/Volumes/Extreme SSD/Project/ca-admin-portal/node_modules/react-navi/create-react-app.js:49:32)
    at build (/Volumes/Extreme SSD/Project/ca-admin-portal/node_modules/navi-scripts/lib/build.js:56:26)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Please help me T_T Many thanks!

nickjanssen commented 4 years ago

Same problem here @jamesknelson

EDIT: looks like navigation.getSteadyValue should be navigation.getRoute now! https://github.com/frontarm/navi/commit/5a87acd0b7d4d43c4c4aae7315474bf794fdfb8a