# Can't import view

**URL:** <https://meta.discourse.org/t/cant-import-view/50402>\
**Category:** Development\
**Created:** [20 Settembre 2016, 6:27pm UTC](https://meta.discourse.org/t/cant-import-view/50402 "2016-09-20T18:27:19Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![sevenmaxis](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)\
**Post date:** [20 Settembre 2016, 6:27pm UTC](https://meta.discourse.org/t/cant-import-view/50402/1 "2016-09-20T18:27:19Z")

</div>

Something weird happening with importing modules. Here’s a snippet from my plugin

```
import PostModel from 'discourse/models/post';
import { withPluginApi } from 'discourse/lib/plugin-api';
import { slot, loadGoogle } from '../lib/gpt';
import TopicView from 'discourse/views/topic';

```

The first three imports work well, but the last one doesn’t work and i don’t know how to figure out why.

The error: `Uncaught ReferenceError: TopicView is not defined`

Do you have any idea why importing `TopicView` doesn’t work?

---

_[View the full topic](https://meta.discourse.org/t/cant-import-view/50402)._
