2017-05-11 79 views
1

我使用下面的命令創建了一個新的應用程序;添加aldeed:autoform導致流星錯誤1.4.4.2

meteor create --full test 

鏈接應用程序工作正常。但後來,我添加了aldeed:autoform來項目並重新運行流星。

瀏覽器控制檯顯示錯誤

Error : There is no route for the path:/

和整個UI是空白。

注意:當我刪除包,應用程序工作正常。

+0

是使用'''simple-schema''的應用程序嗎? – blueren

+0

nope。該應用程序不使用簡單模式。我也添加了它,但仍然存在問題。 –

+0

simpl-schema還需要啓用autoform:'SimpleSchema.extendOptions(['autoform']);' – Jankapunkt

回答

0

AutoForm 6.0需要將您的應用程序切換爲使用'NPM'和aldeed:collection2-core包中的SimpleSchema軟件包。

我遇到了和你一樣的問題,所以當我運行命令npm install simpl-schema時,控制檯中的錯誤消失了。

注:aldeed:autoform也在找mongo-object這是目前在simpl-schema從NPM。爲了更好地理解,請按照下面的圖片。

enter image description here

希望這有助於。