Comments (10)
@wagenet can you speak to this issue at all?
from sproutcore-statechart.
@salomons, is there anything in the generated code that looks at all problematic? Also, if you just open the index.html locally (without bpm preview) does that work?
from sproutcore-statechart.
@wagenet, opening the index.html file locally doesn't work either. I get the same error:
syntax error
__evalFunc = function(a,b,c,d,e,f){var...efined)};return c.statePlugin=YES,c}}
I am using:
bpm rc3
statechart beta 3
I Tryed to recreate the steps above with updated ruby (from p180 to p290) but I couldn't add sproutcore --pre anymore. Reverted the update to p180, but I still can't use --pre. Is --pre deprecated or is it still the way to go? Filed an issue at bpm/bpm#56.
from sproutcore-statechart.
@salomons, a couple of ideas:
- In your project JSON, remove the minifier line and replace it with
"spade:format": "function"
. This will prevent your bpm_libs.js from being minified and will make spade register functions instead of strings. This should make it easier to track down where the error is coming from. - Make a
vendor
directory and clone http://github.com/sproutcore/sproutcore-statechart.git into that directory. This will make BPM use that version instead of the package from getbpm.org. If this works, then it's possible there was a bug in beta3 that was causing problems.
Also, what browser and OS are you using?
from sproutcore-statechart.
@wagenet,
I removed the minifier line and found out that the error occur using eval in the following function:
Ep.evaluate = function(text, sandbox, filename) {
return eval(text);
};
When I replaced the line with "spade:format": "function" as you suggested it works perfectly! So there seems to be a bug somewhere.
I am using OS X 10.6 and I tried both firefox and safari.
Thanks!
from sproutcore-statechart.
What if you try vendoring sproutcore-statechart master and don't do "spade:format": "function"
?
from sproutcore-statechart.
Hurray! Did the vendor thing and it used beta4 from local package and it worked using bpm preview. It also worked using a node server, which was my initial problem.
Thanks a thousand for your help!
from sproutcore-statechart.
My guess is that there's something in beta3 (possibly a debugger statement) that is causing problems in your environment.
from sproutcore-statechart.
Yeah, there was. It's fixed in beta4
from sproutcore-statechart.
Awesome! Now SC 2 is mature enough for me to start developing my app. Excellent work you have done in v 2.0!
from sproutcore-statechart.
Related Issues (5)
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 sproutcore-statechart.