question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ember-simple-auth 1.4.0 create a strange file when I "ember build -prod"

See original GitHub issue

I switched from 1.3.0 to 1.4.0 and now when I ember build -prod I have a new file in:

dist/ember-fetch/fastboot-fetch-a4c28b6b7b24781cc7616fb44c1def25.js:

(function(){define('fetch',['exports'],function(a){var b=FastBoot.require('node-fetch');a['default']=b,a.Headers=b.Headers,a.Request=b.Request,a.Response=b.Response}),define('fetch/ajax',['exports'],function(){throw new Error('You included fetch/ajaxbut it was renamed toember-fetch/ajax')})})();

Why this?

I don’t want this file in my prod dist folder.

I’m not using fastboot.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

2reactions
tchakcommented, Oct 27, 2017

After some thought there may be a solution. If ember-fetch could know if ember-fastboot is installed it could decide to include or not the file in the public folder. I am wondering if the pattern of requiring a fastboot specific implementation is something we expect to become idiomatic and used in lots of addons? If it is the case, maybe it worth resolving? cc @rwjblue @kratiahuja

0reactions
xmcommented, Oct 27, 2017

In other words: if my app is not using fastboot, how do I avoid this step ever happening? Is there a flag to set, or can a change be made in ember-fetch to detect fastboot?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Large app performance / file splitting - Ember.JS
I've been working on a semi overhaul and refactor of my application and have been trying to tackle ever increasing build times and...
Read more >
Static Site Build Failing - help debug? - Render community
Below is the error I'm getting. Not sure what is causing it. The build works on Netlify just fine. Wanted to port to...
Read more >
Implementing a custom ember-simple-auth Authenticator
Actually you solution looks like right. I guess you have a problem in server response or mismatch request methods GET/POST.
Read more >
Full-Stack Development with Ember.js and Rails, Part 8
We'll use Ember Simple Auth on the frontend and Doorkeeper on the backend to log in, protect our data, and set up different...
Read more >
ember-simple-auth-input-meta-updated - npm package - Snyk
[![Build Status](https://travis-ci.org/simplabs/ember-simple-auth.svg? ... All security vulnerabilities belong to production dependencies of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found