Skip to content

Requiring goog breaks reloading with Namespace already declared #227

@mfikes

Description

@mfikes

If you require goog, reloading will break with an error indicating

Namespace "my_app.ios.core" already loaded

error message.

Repro:

Set up fresh project using re-natal init FutureApp and go through the steps, establishing an iOS REPL. Then modify the ns form in the source for the future-app.ios.core namespace to add goog to the list of libraries in the :require section. Save the file and then observe red screen with:

Namespace "future_app.ios.core" already declared.

eval
    [native code]:0
<unknown>
    figwheel-bridge.js:116:25
tryCallOne
    core.js:37:14
<unknown>
    core.js:123:25
_callTimer
    JSTimers.js:152:14
_callImmediatesPass
    JSTimers.js:200:17
callImmediates
    JSTimers.js:473:30
callImmediates
    [native code]:0
__callImmediates
    MessageQueue.js:337:6
<unknown>
    MessageQueue.js:135:6
__guard
    MessageQueue.js:314:10
flushedQueue
    MessageQueue.js:134:17
flushedQueue
    [native code]:0
invokeCallbackAndReturnFlushedQueue
    [native code]:0

This is also reproducible with Android.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions