我有一个文件夹设置,包含我已经想要在文件夹中的一些文件.我希望能够跑步
react-native init PROJECTNAME
而不是创建一个文件夹PROJECTNAME,它将在我当前所在的文件夹中初始化一个react-native项目.
这可能吗?
目前,我已经使用我喜欢使用的先前项目(packages.json,配置文件等)创建了我的设置.我删除了node_modules,然后是react-native init PROJECTNAME.然后我将该文件夹中生成的PROJECTNAME/ios PROJECTNAME/android文件夹移动到主项目文件夹中,它的工作非常顺利.只是不是最佳的.
我今天刚刚升级到Webpack 2.2并且已经阅读了他们的指南,这些指南似乎仍在进行中.
我在设置我的应用程序以使用webpack-dev-server和热模块重新加载时遇到了困难.
我通过webpack文档关注的指南在这里,但我不得不修改它以使用开发/生产应用程序.
https://webpack.js.org/guides/hmr-react/
我得到的两个错误如下......
Uncaught Error: _registerComponent(...): Target container is not a DOM element.
at invariant (eval at <anonymous> (index.js:2), <anonymous>:44:15)
at Object._renderNewRootComponent (eval at <anonymous> (index.js:64), <anonymous>:311:44)
at Object._renderSubtreeIntoContainer (eval at <anonymous> (index.js:64), <anonymous>:401:32)
at render (eval at <anonymous> (index.js:64), <anonymous>:422:23)
at hotRenderer (eval at <anonymous> (index.js:73), <anonymous>:41:28)
at eval (eval at <anonymous> (index.js:73), <anonymous>:47:5)
at eval (eval at <anonymous> (index.js:73), <anonymous>:54:5)
at Object.<anonymous> (index.js:73)
at e (index.js:1)
at Object.<anonymous> (index.js:146)
Run Code Online (Sandbox Code Playgroud)
和
Warning: React.createElement: type is invalid …Run Code Online (Sandbox Code Playgroud) 我正在开始使用以太坊并构建一个 Dapp(顺便说一下,这到底是什么意思?)。在应用程序的基本安装(https://github.com/ethereum/wiki/wiki/Dapp-using-Meteor#connect-your-%C3%90app)时,我在尝试连接时收到此错误。
geth --rpc --rpccorsdomain "http://localhost:3000"
I0804 23:48:24.987448 ethdb/database.go:82] Alloted 128MB cache and 1024 file handles to /Users/( . )Y( . )/Library/Ethereum/chaindata
Fatal: Could not open database: resource temporarily unavailable
Run Code Online (Sandbox Code Playgroud)
我刚刚开始,我通过自制软件设置了以太坊并在 geth 上注册了一个帐户。不能从这里过去。
谢谢!