Git Product home page Git Product logo

Comments (8)

jrburke avatar jrburke commented on May 27, 2024

I believe I fixed this in #8, but please confirm by using the latest snapshot build, dist/r-20110726.js. Feel free to reopen this ticket if it does not fix the problem.

from r.js.

jrburke avatar jrburke commented on May 27, 2024

@drewwells: did you need to reopen this issue? I thought I got notification, but I cannot seem to find your comment now. I'll reopen the bug just in case, and if you can tell me the latest snapshot still fails with an error, I'll take a look.

I was responding to the part of the message above that mentions "Optimizer can only handle local paths. Download the locally if necessary and update the config to use a local path." and this was being incorrectly enforced for windows paths.

from r.js.

drewwells avatar drewwells commented on May 27, 2024

I uncovered an issue with my build profile and now realize it's broken on Windows and Linux. So I think the issue is unrelated, so I deleted it. It's only showing up while trying to build an optimized profile not in the 'dev' version.

I forget how proactive you are, I should have edited that the issue saying, coming back soon or not at all :)

from r.js.

drewwells avatar drewwells commented on May 27, 2024

So I finally figured out the problem, my build (possibly any build) is broken in v0.5.3pre of NodeJS. Not sure it's worth inspecting.
v0.4.10 works
v0.5.0 works
v0.5.1 works
v0.5.2 works
v0.5.3pre fails (Tag v0.5.2 on joyent/node)

from r.js.

jrburke avatar jrburke commented on May 27, 2024

I tried some build tests using Node 0.5.3 and they worked for me. However, what did not work was just running a requirejs-based app via node: node r.js main.js. I get this error:

Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead.

That pathway is not taken for a plain r.js -o optimization build though. If you still notice the error with 0.5.3, more info on the error and maybe a test profile (if different than above) might be helpful. I will look at fixing the error I see for plain app running in Node, but will do that as part of Issue #11.

from r.js.

drewwells avatar drewwells commented on May 27, 2024

Sorry looks like I'm still getting this issue with the windows built node available on their website, I'm working through the minGW instructions to see if that works on Windows.

from r.js.

jrburke avatar jrburke commented on May 27, 2024

You might try the latest snapshot, I have done some work since I last posted in this issue on improving windows support.

from r.js.

drewwells avatar drewwells commented on May 27, 2024

Yep that fixed this problem, thanks

from r.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.