Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

bundle() having trouble with path containing spaces? #486

Closed
OClement opened this issue Jan 25, 2016 · 3 comments
Closed

bundle() having trouble with path containing spaces? #486

OClement opened this issue Jan 25, 2016 · 3 comments

Comments

@OClement
Copy link

I'm having issues in trying to create multiple bundles through a gulp task
Because of an apparent limitation with gulp, I want to pass an absolute path to the bundler, but it complains about it:

Unhandled rejection TypeError: Expected operator before AFTER_SPACE\OF\PATH\TO\PROJECT_ROOT\EntyPoint.js
    at parseExpression (C:\PROJECT\BEFORE_SPACE AFTER_SPACE\OF\PATH\TO\PROJECT_ROOT\node_modules\systemjs-builder\lib\arithmetic.js:24:13)
    at exports.traceExpression (C:\PROJECT\BEFORE_SPACE AFTER_SPACE\OF\PATH\TO\PROJECT_ROOT\node_modules\systemjs-builder\lib\arithmetic.js:139:20)
    at C:\PROJECT\BEFORE_SPACE AFTER_SPACE\OF\PATH\TO\PROJECT_ROOT\node_modules\systemjs-builder\lib\builder.js:545:12
    at tryCatcher (C:\PROJECT\BEFORE_SPACE AFTER_SPACE\OF\PATH\TO\PROJECT_ROOT\node_modules\systemjs-builder\node_modules\bluebird\js\release\util.js:11:23)
    at Promise._settlePromiseFromHandler (C:\PROJECT\BEFORE_SPACE AFTER_SPACE\OF\PATH\TO\PROJECT_ROOT\node_modules\systemjs-builder\node_modules\bluebird\js\release\promise.js:489
:31)
    at Promise._settlePromise (C:\PROJECT\BEFORE_SPACE AFTER_SPACE\OF\PATH\TO\PROJECT_ROOT\node_modules\systemjs-builder\node_modules\bluebird\js\release\promise.js:546:18)
    at Promise._settlePromiseCtx (C:\PROJECT\BEFORE_SPACE AFTER_SPACE\OF\PATH\TO\PROJECT_ROOT\node_modules\systemjs-builder\node_modules\bluebird\js\release\promise.js:583:10)
    at Async._drainQueue (C:\PROJECT\BEFORE_SPACE AFTER_SPACE\OF\PATH\TO\PROJECT_ROOT\node_modules\systemjs-builder\node_modules\bluebird\js\release\async.js:130:12)
    at Async._drainQueues (C:\PROJECT\BEFORE_SPACE AFTER_SPACE\OF\PATH\TO\PROJECT_ROOT\node_modules\systemjs-builder\node_modules\bluebird\js\release\async.js:135:10)
    at Immediate.Async.drainQueues [as _onImmediate] (C:\PROJECT\BEFORE_SPACE AFTER_SPACE\OF\PATH\TO\PROJECT_ROOT\node_modules\systemjs-builder\node_modules\bluebird\js\release\as
ync.js:16:14)
    at processImmediate [as _immediateCallback] (timers.js:384:17)

I would rather use a relative path but gulp doesn't use the proper working directory;

I will probably reorganize my code as a work around but thought I would create this issue in the meantime

@guybedford guybedford added the bug label Jan 27, 2016
@guybedford
Copy link
Member

This is actually a SystemJS builder bug that bundle('/some path/asdf') will throw like that. We can do some polishing around these use cases.

But yes, setting the baseURL properly is important for builds.

@guybedford
Copy link
Member

Fixed in 37bcdb2.

@guybedford
Copy link
Member

Released in 0.15.8.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants