-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependency issue with fastboot-app-server #115
Comments
/cc @tchak @stefanpenner |
It looks like fasboot node packages are not properly installed... |
@tchak |
@Mciocca I just tried your demo app and it works for me... Can I see your |
@tchak Pretty much just copy and pasted from the
|
Are you running server.js from another location other than If you are running server.js from another location without |
So I played around with it and had these results: Fastboot is require'ing from When the check fails, Fastboot does
Then I changed to the actual path Conclusion:
|
/cc @thoov |
until ember-cli/ember-fetch#115 is resolved
@xg-wang so what's the fix here? I'm already running |
Prevents an import error in FastBoot. See ember-cli#115 (comment)
I ended up getting this working by doing |
@xg-wang you shouldn't ideally need node_modules in dist if you don't have any whitelisted packages. |
@kratiahuja |
Well, so in the end? How to solve this problem? Above in your answers, I saw nothing. |
After building, our app's "fastboot dist" package.json has For now, we've installed |
I have the same problem, is there a way to contribute to a solution? This is a showstopper for my production... (I don't know that much about fastboot, yet) |
@davidbilling A temporary fix is to just keep your fastboot server in the root of your ember app's directory. It's not great to not be able to separate your ember app from your fastboot app server, but it works. |
When hitting this error today, installing (installing |
I just ran into this problem and found the root cause. #112 introduced the use of the The first release this stuff went out in was v5.0.0 To reproduce the problem, you need to have conflicting versions of Here's how we know we're in the problematic situation $ yarn why ember-fetch
=> Found "ember-fetch@3.4.5"
=> Found "ember-simple-auth#ember-fetch@5.1.3"
✨ Done in 1.08s. Now when you start the example and navigate to the error message.
What appears to be happenning here is a |
@mike-north It seems to be a different issue. I can reproduce @Mciocca 's issue with the non-root Actually if you open the file |
I did more debug. I think it's perfectly fine for |
@Mciocca I modified your repro a bit and added some more description here https://github.com/xg-wang/fastboot-issue. |
@mhluska 's fix worked for me. |
I'm seeing this issue as well in spite of upgrading. Should it be closed? After using @mhluska's fix, I am seeing this: |
I have found if you just install |
I am getting the following error when attempting to use an ember app that uses
ember-fetch
withfastboot-app-server
I do not get this error when visiting the same page when serving the app with
ember s
Here is a very simple app that will recreate this error when using the
fastboot-app-server
defaults:https://github.com/Mciocca/fastboot-test
A co-worker was also able to recreate this error. He followed the tutorial on the ember fastboot site.
The text was updated successfully, but these errors were encountered: