Comments (6)
Hm...seems to work fine in a Node REPL:
> var Immutable = require("seamless-immutable")
undefined
> var array = Immutable(["foo", "foo2", "bar", "bar2", "baz", "baz2"]);
undefined
> array
[ 'foo', 'foo2', 'bar', 'bar2', 'baz', 'baz2' ]
My first guess would be that Ember modifies Array.prototype
in some way that is incompatible with seamless-immutable
...do you know if that's something Ember does?
from seamless-immutable.
Yes, you are right, ember does modify the prototype. You can turn that off though.
Thanks
from seamless-immutable.
I've stopped ember extending the prototypes and I get a new error:
Uncaught ReferenceError: process is not defined
Which references this code:
if (process.env.NODE_ENV === "development") {
// Make all mutating methods throw exceptions.
for (var index in bannedMethods) {
banProperty(obj, bannedMethods[index]);
}
Is this library node only?
Here is the updated jsbin
from seamless-immutable.
@dagda1 This is happening because you're importing the seamless-immutable source, not the compiled version (which has process
stripped out). Try importing one of these instead:
seamless-immutable development mode
(with freezing and helpful exception messages)
seamless-immutable production mode
(minified, and runs faster, but doesn't freeze objects or offer helpful exception messages)
from seamless-immutable.
@dagda1 Did this fix the issue you were having?
from seamless-immutable.
Sorry, yes, thanks
from seamless-immutable.
Related Issues (20)
- Make `without` support removing item from an array HOT 4
- how to use splice like array HOT 1
- Internet Explorer tests are failing HOT 4
- Issue regarding null values HOT 5
- Why are IE tests failing? HOT 3
- How to apply splice with seamless-immutable? HOT 1
- Merge does not work with class instances
- __immutable_invariants_hold is enumerable on Edge HOT 1
- Garbage collector features? HOT 1
- Performance characteristics
- Any difference with deepCopy? HOT 1
- [types] Mixin not applied to nested objects HOT 1
- flatMap not working HOT 2
- Add documentation for merge mode
- Files not being replaced on a deep merge
- Fails on IE 11 HOT 1
- TypeError: Object(...) is not a function HOT 1
- Lodash Vulnerability Problem
- Is the project still maintained? HOT 2
- immutable object causes rapid memory growth HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seamless-immutable.